Re: [ansible-project] Ansible on CentOS 7 problem with "selinux" on a Cisco Wireless LAN Controller

23 views
Skip to first unread message
Message has been deleted

Dick Visser

unread,
Apr 7, 2020, 8:31:14 AM4/7/20
to ansible...@googlegroups.com
You can't expect us to visit random URLs in order to help.
Please post the playbook and error inline in your message.

On Tue, 7 Apr 2020 at 14:26, Sebigeli <s.geli...@gmail.com> wrote:
Hello everyone !

- I have a Cisco Wireless LAN Controller 5520
- I use Ansible 2.9.6 about CentOS 7.7
- I use Aireos module of Ansible 

I need to display the list of APs on the WLC and export it file for used in a powershell script for add the AP on PRTG Supervision. 

I manage to display the list of AP present on the WLC but to make a copy of the data in file it does not work. 

I think, the problem come of Selinux, the WLC dont have it, do you have a settings for skip this ?

Attached my playbook file and the selinux error in the next url. 

Sorry for my english, I'm French.
Thanks for your help

--
You received this message because you are subscribed to the Google Groups "Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ansible-proje...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/bcf223ce-2fc5-4ac7-a295-3ed32255c69b%40googlegroups.com.


--
Dick Visser
Trust & Identity Service Operations Manager
GÉANT

Sebigeli

unread,
Apr 7, 2020, 9:14:53 AM4/7/20
to Ansible Project
Edit : you are right, excuse me, attached the update 

Hello everyone !

- I have a Cisco Wireless LAN Controller 5520
- I use Ansible 2.9.6 about CentOS 7.7
- I use Aireos module of Ansible 

I need to display the list of APs on the WLC and export it file for used in a powershell script for add the AP on PRTG Supervision. 

I manage to display the list of AP present on the WLC but to make a copy of the data in file it does not work. 

I think, the problem come of Selinux, the WLC dont have it, do you have a settings for skip this ?

My playbook file :

---
- hosts: "WLC"
  gather_facts: false

  tasks:
  - name: SHOW AP SUMMARY 
    aireos_command:
      provider: "{{ legacy_credentials }}"
      commands:
        - show ap summary
    register: output

  - name: COPY THE OUTPUT TO A LOCAL FILE
    copy:
      content: "{{ output.stdout }}"
      dest: "/tmp/ap.txt"
    delegate_to: localhost

My error : 

Ansible-Error-WLC-Playbook.png

Sebigeli

unread,
Apr 10, 2020, 5:15:11 AM4/10/20
to Ansible Project
No idea ? 
Thanks

Kai Stian Olstad

unread,
Apr 10, 2020, 11:48:23 AM4/10/20
to ansible...@googlegroups.com
On Fri, Apr 10, 2020 at 02:15:11AM -0700, Sebigeli wrote:
> No idea ?
> Thanks

Well, when you post your error message as an image you limit the number for people that can help.
As an example, my mail client doesn't support images or HTML-mails.

--
Kai Stian Olstad

Stefan Hornburg (Racke)

unread,
Apr 10, 2020, 11:53:26 AM4/10/20
to ansible...@googlegroups.com
Even if the mail clients support it, the screen shot if often hard to read (small font. green on
black background, ..)

Regards
Racke

--
Ecommerce and Linux consulting + Perl and web application programming.
Debian and Sympa administration. Provisioning with Ansible.

signature.asc
Reply all
Reply to author
Forward
0 new messages