I play with Ansible for quite a while now. Here are some real life examples and hints. Yaml good indentation - hosts: ... vars: filename: ... vars_files: - ... tasks: - name:... command: ... Managing several versions - lineinfile: name: /etc/inittab regexp: '^ca::ctrlaltdel' line: 'ca::ctrlaltdel:/bin/logger -p authpriv.warning -t init "Console-invoked Ctrl-Alt-Del was ignored"' state: 'present' when: ansible_distribution_major_version == "5" - name: Disable Ctrl+Alt+Delete on RHEL6 block: - file: path: /etc/init/control-alt-delete.override state: absent - lineinfile: path: /etc/init/control-alt-delete.override create: yes owner: root group: root mode: 0644 line: 'exec /usr/bin/logger -p authpriv.notice -t init "Console-invoked Ctrl-Alt-Del was ignored"...
Parce que j'aime bien la musique. Parce que je trouve bien les instruments. Parce qu'il y a beaucoup de boutons. Et que j'aimerais bien jouer du piano.