# code: language=ansible - name: Configure ssh and firewall hosts: # - archlinux_servers - ch02.balsillie.house gather_facts: false become: true pre_tasks: - name: Set IPv4 facts become: false ansible.builtin.set_fact: ipv4_address: "{{ query('community.dns.lookup', inventory_hostname, type='A', nxdomain_handling='fail') | first }}" - name: Set IPv6 facts become: false when: - not (ipv4_only | default(false)) ansible.builtin.set_fact: ipv6_address: "{{ query('community.dns.lookup', inventory_hostname, type='AAAA', nxdomain_handling='fail') | first }}" - name: Install basic utilities community.general.pacman: name: - nano - curl state: present update_cache: true roles: # - hostname # - sudoers # - sshd - podman