Skip to content

Commit

Permalink
modify variable setup, run cleanup script
Browse files Browse the repository at this point in the history
  • Loading branch information
Grotax committed Feb 10, 2024
1 parent ac4eb32 commit 5b9a181
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 7 deletions.
5 changes: 5 additions & 0 deletions roles/batman/tasks/from_source.yml
Original file line number Diff line number Diff line change
Expand Up @@ -94,3 +94,8 @@
ansible.builtin.file:
path: /opt/batctl-{{ batman_version }}
state: absent

- name: Remove old batman-adv versions
ansible.builtin.script: files/cleanup.py {{ batman_version }}
args:
executable: python3

Check failure on line 101 in roles/batman/tasks/from_source.yml

View workflow job for this annotation

GitHub Actions / build

yaml[new-line-at-end-of-file]

No new line character at the end of file
2 changes: 1 addition & 1 deletion roles/batman/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

- name: Print batman version and target
ansible.builtin.debug:
msg: "Currently installed batman {{ installed_batman_version.stdout }} target is {{ batman_version }}"
msg: "Currently installed batman: {{ installed_batman_version.stdout }} ,target is: {{ batman_version }}"

- name: Check if batman-adv needs to be installed or upgraded
ansible.builtin.include_tasks: from_source.yml
Expand Down
2 changes: 1 addition & 1 deletion roles/ssh/tasks/main.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
- name: Set up public ssh keys for root
ansible.posix.authorized_key:
user: '{{ login_user }}'
user: "{{ users[0]['username'] }}"
state: present
key: '{{ item }}'
with_file:
Expand Down
13 changes: 8 additions & 5 deletions setup.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
vars:
users:
- username: root
batman_version: "2024.0"
node_exporter_version: "1.7.0"
bootstrap_version: "5.3.2"
pre_tasks:
- name: Update apt cache
ansible.builtin.apt:
Expand All @@ -12,18 +15,18 @@
- { role: wireguardexit, tags: "wireguard, exit"}
- { role: hostname, tags: "hostname"}
- { role: fail2ban, tags: "fail2ban"}
- { role: batman, tags: "batman-adv", batman_version: "2023.3"}
- { role: batman, tags: "batman-adv"}
- { role: fastd, tags: "fastd"}
- { role: radvd, tags: "radvd"}
- { role: dhcp, tags: "isc-dhcp4-server"}
- { role: bind, tags: "dns"}
- { role: respondd, tags: "respondd"}
- { role: prometheus, tags: "node_exporter", node_exporter_version: "1.7.0"}
- { role: prometheus, tags: "node_exporter"}
- { role: letsencrypt, tags: "letsencrypt"}
- { role: nginx, tags: "node_exporter, nginx", bootstrap_version: "5.3.2"}
- { role: tools, tags: "admin-tools", batman_version: "2023.3"}
- { role: nginx, tags: "node_exporter, nginx", }
- { role: tools, tags: "admin-tools"}
- { role: motd, tags: "motd"}
- { role: ohmyzsh, tags: "oh-my-zsh", oh_my_zsh_theme: ffsh}
- { role: ohmyzshtheme, tags: "oh-my-zsh-theme"}
- { role: ssh, tags: "ssh keys", login_user: 'root'}
- { role: ssh, tags: "ssh keys"}
- { role: ffshmon, tags: "wireguard, ffshmon"}

0 comments on commit 5b9a181

Please sign in to comment.