123456789101112131415161718192021222324 |
- ---
- - name: Ensure workstation has the collections it needs.
- hosts: workstation.lab.example.com
- become: no
- gather_facts: no
- tasks:
- - name: Install the required collections.
- become: yes
- ansible.builtin.yum:
- name:
- - ansible-collection-ansible-posix
- - ansible-collection-community-crypto
- - ansible-collection-community-general
- - ansible-collection-containers-podman
- state: present
- - name: Remove Google from resolv.conf
- become: yes
- ansible.builtin.lineinfile:
- path: /etc/resolv.conf
- line: "nameserver 8.8.8.8"
- state: absent
- ...
|