123456789101112131415161718192021222324252627 |
- ---
- - name: Make sure idm is in /etc/hosts
- ansible.builtin.lineinfile:
- path: /etc/hosts
- regexp: '^172.25.250.9\s+'
- line: "172.25.250.9 workstation.lab.example.com workstation idm.lab.example.com"
- state: present
- notify:
- - Restart dnsmasq
- - name: Make sure sso is in /etc/hosts
- ansible.builtin.lineinfile:
- path: /etc/hosts
- regexp: '^172.25.250.253\s+'
- line: "172.25.250.253 utility.lab.example.com utility sso.lab.example.com"
- state: present
- notify:
- - Restart dnsmasq
- ...
|