Hallo folks,
I am Andre, a newby on Ansible.
Working en Living in the Netherlands. Linux sysadmin for a long time, but no selinux and ansible master.
I want to import a selinux .pp file with ansible
- name: import nagios_collect.pp
command: /usr/sbin/semodule -i {{ tmp_dir }}/nagios_collect.pp
stderr": “libsemanage.semanage_create_store: Could not access module store at /etc/selinux/targeted, or it is not a directory. (Permission denied).\nlibsemanage.semanage_direct_connect: could not establish direct connection (Permission denied).\n/usr/sbin/semodule: Could not connect to policy handler”,
stderr: libsemanage.semanage_create_store: Could not access module store at /etc/selinux/targeted, or it is not a directory. (Permission denied).
libsemanage.semanage_direct_connect: could not establish direct connection (Permission denied).
/usr/sbin/semodule: Could not connect to policy handler
with become_user=root in the playbook it keeps failing.
Anybody any clue or pointers for me?
I have the o’reilly book next to me, but found no solutions yet.
Best regards
Andre