New answers tagged

0

Use conditonals. - name: Check Service by Display name | NameOfMyService win_service: name: name_of_my_service register: service ignore_unreachable: yes - name: Print status of Windows Service | NameOfMyService debug: var: service - name: Frobnicate the service frobnicate: service: name_of_my_service when: ...


0

tl;dr playbooks can only have alphanumeric characters and underscores run them with ansible-playbook namespace.module.playbook_name_without_the_extension The documentation provided by ansible is getting better: https://docs.ansible.com/ansible/latest/user_guide/collections_using.html#using-a-playbook-from-a-collection doesn't quite explain why it wasn't ...


0

Per Vladimir Botka: Fatal error terminates the thread. That's the default. You can handle the errors on your own if you want to.


1

Got it to work with this - name: Set File Watch Limit shell: "echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p"


0

Maybe try using lsb_release to derive the information, setting it as a fact, then look up the family from an Ansible hash map populated with the associations. Here is a mention of ansible_facts['os_family'] at https://docs.ansible.com/ansible/latest/user_guide/playbooks_conditionals.html#ansible-facts-os-family


Top 50 recent answers are included