ansible Inline/Dynamic variable in Ansible playbook I have an ansible playbook that setups my system and I have some aliases that I like to set, like alias apt-get='sudo apt-get' and alias yum='sudo yum'. Yes, I could create a block for Ubuntu and another for RedHat, but sometimes it's
ansible Ansible: check_mode One of those cool tricks: Checking if string exists in file and then decide whether to run a command or not - name: Check if ldap.example.com is configured lineinfile: dest: /etc/openldap/ldap.conf line: "URI ldap://ldap.example.com/" check_mode: yes register: presence # failed_