Originally posted by: KarstenHespelt
Hello,
Could you please consider providing RPM packages for augeas and python-augeas for AIX?
If we would have augeas and its python bindings on AIX, one would be able to leverage the very useful augeas ansible module for managing all kinds of configuration files and formats.
Without augeas you would need to use things like lineinfile module to comment out configuration attributes you don't want and make sure the things you do want is in an uncommented line.
Augeas ships with a understanding of many different configuration files and formats and gives you the ability to just specify which attribute need to be set to which value.
Here is an example how directly you can manage sshd_config attributes:
- name: modify sshd config
action: augeas command="set" path="/files/etc/ssh/sshd_config/{{ item.path }}" value="{{ item.value }}"
with_items:
- path: 'PasswordAuthentication'
value: 'no'
- path: 'PubkeyAuthentication'
value: 'yes'
- path: 'PermitRootLogin'
value: 'no'
notify:
- Restart sshd
Kind Regards
Karsten Hespelt