diff --git a/inventory/group_vars/openwrt.yml b/inventory/group_vars/openwrt.yml new file mode 100644 index 0000000..3e28929 --- /dev/null +++ b/inventory/group_vars/openwrt.yml @@ -0,0 +1 @@ +# OpenWRT-specific variables go here diff --git a/inventory/hosts b/inventory/hosts index 79d0a7c..790c142 100644 --- a/inventory/hosts +++ b/inventory/hosts @@ -3,5 +3,12 @@ # 172.22.90.75 ansible_ssh_common_args="-o StrictHostKeyChecking=no" # Bare Metal Nodes 10.0.10.169 ansible_ssh_common_args="-o StrictHostKeyChecking=no" -10.0.10.4 ansible_ssh_common_args="-o StrictHostKeyChecking=no" -10.0.10.141 ansible_ssh_common_args="-o StrictHostKeyChecking=no" +# 10.0.10.4 ansible_ssh_common_args="-o StrictHostKeyChecking=no" +# 10.0.10.141 ansible_ssh_common_args="-o StrictHostKeyChecking=no" +# 10.0.10.64 ansible_ssh_common_args="-o StrictHostKeyChecking=no" + +[openwrt] +# Not enough storage space for these devices to support Ansible +# 10.0.10.1 +# 10.0.10.2 +# 10.0.10.3 \ No newline at end of file diff --git a/roles/tasks/debian/setup.yml b/roles/tasks/debian/setup.yml index 0f3094d..e42b51a 100644 --- a/roles/tasks/debian/setup.yml +++ b/roles/tasks/debian/setup.yml @@ -62,11 +62,6 @@ state: latest - name: Install ACME shell: curl https://get.acme.sh | sh -s email="{{ ACME_EMAIL }}" - - name: Ensure ACME directory exists - file: - path: ~/.acme.sh/.ssh/ - state: directory - mode: "0700" - name: Enable Syncthing Service command: systemctl enable syncthing@root.service - name: Start Syncthing Service diff --git a/roles/tasks/debian/update.yml b/roles/tasks/debian/update.yml index 25bf1dc..2f6a90b 100644 --- a/roles/tasks/debian/update.yml +++ b/roles/tasks/debian/update.yml @@ -6,17 +6,21 @@ tasks: - name: Update Docker apt: - name: docker + name: + - docker update_cache: true autoremove: true state: latest + notify: Restart Docker Containers - name: Update all packages apt: - name: "*" update_cache: false autoremove: true state: latest - name: Update ACME command: /root/.acme.sh/acme.sh --upgrade --auto-upgrade - - name: Restart All Services + + handlers: + # Restart Docker Containers on Docker Update + - name: Restart Docker Containers command: bash "/root/scripts/start_services.sh"