--- - name: Configure local repository hosts: 127.0.0.1 connection: local gather_facts: no tasks: - name: Create local directory for credentials & keys file: path: "{{ item }}" owner: "{{ global_local_user }}" group: "{{ global_local_user }}" mode: "u=rwx,g=rx,o=rx" state: directory loop: - "{{ global_credentials_directory }}" - "{{ global_public_key_directory }}" - "{{ global_ssh_key_directory }}" - "{{ global_ssh_host_key_directory }}" - "{{ global_wireguard_private_directory }}" - "{{ global_wireguard_public_directory }}" - name: Install required tools become: yes become_user: root become_method: sudo apt: name: - sshpass - wireguard-tools state: present - name: Configure secure root access to hosts hosts: bootstrap gather_facts: no roles: - role: bootstrap - hosts: all strategy: free roles: - role: hostname fqdn: "{{ inventory_hostname }}" - role: common - role: account username: "zocker" password: "{{ zocker_password }}" authorized_keys: "{{ zocker_authorized_keys_url }}" sudo: yes - name: Configure bwcloud nodes import_playbook: playbooks/groups/bwcloud.yml - name: Configure group os_raspbian import_playbook: playbooks/groups/os_raspbian.yml - name: Configure wireguard network import_playbook: playbooks/wireguard.yml - name: Include dns configuration import_playbook: playbooks/dns.yml - name: Include configuration of nvak.banananet.work import_playbook: playbooks/hosts/nvak.banananet.work.yml - name: Include configuration of rurapenthe.banananet.work import_playbook: playbooks/hosts/rurapenthe.banananet.work.yml - hosts: hardie.eridon.banananet.work roles: - role: misc/ip_discover