Files @ df7b1bb5a852
Branch filter:

Location: freifunk/Ansible-Configuration/gateway/all_gw_config.yml - annotation

x
fix: make all_gw_config comply with linter
---
# Defining the remote server where the package will be deployed
- name: "Deploy new config"
  hosts: test
  remote_user: root
  become: true
  become_method: ansible.builtin.sudo
  tasks:

    - name: Setup network interfaces (bridge + bat0)
      ansible.builtin.copy:
        src: /home/fflux/Infrastructure-Intern/server_config/gw_configs/fflux-test/freifunk
        dest: /etc/network/interfaces.d/freifunk
        owner: root
        group: root
        mode: '0644'

    - name: Copy dnsmasq file with owner and permissions
      ansible.builtin.copy:
        src: /home/fflux/Infrastructure-Intern/server_config/gw_configs/fflux-test/fflux
        dest: /etc/dnsmasq.d/fflux
        owner: root
        group: root
        mode: '0644'

    - name: Copy fastd config file with owner and permissions
      ansible.builtin.copy:
        src: /home/fflux/Infrastructure-Intern/server_config/gw_configs/fflux-test/fastd.conf
        dest: /etc/fastd/fflux/fastd.conf
        owner: root
        group: root
        mode: '0644'

    - name: Copy respondd config file with owner and permissions
      ansible.builtin.copy:
        src: /home/fflux/Infrastructure-Intern/server_config/gw_configs/fflux-test/respondd.conf
        dest: /opt/mesh-announce/respondd.conf
        owner: root
        group: root
        mode: '0644'

    - name: Reload systemd daemon
      ansible.builtin.systemd_service:
        daemon_reload: true
    - name: Re-Start + Enable respondd
      ansible.builtin.service:
        name: respondd
        state: "restarted"
        enabled: true

# syncronize gateway peers

    - name: Reboot host and wait for it to restart
      ansible.builtin.reboot:
        msg: "Reboot initiated by Ansible"
        connect_timeout: 5
        reboot_timeout: 600
        pre_reboot_delay: 0
        post_reboot_delay: 30
        test_command: whoami