Compare commits

...

3 Commits

Author SHA1 Message Date
429a756a60 Add emergency disaster-recovery inventory
Should make it easier to recover from a broken Netbox now
2021-09-01 19:29:02 -05:00
360238fdd4 Ensure we're on a version of Netbox with secrets support
*sigh*
Guess I gotta set up a vault or something now.
2021-09-01 19:25:31 -05:00
6aef1be67b Move autoremove into its own task on the common role 2021-09-01 19:16:05 -05:00
5 changed files with 9 additions and 2 deletions

1
inventory-hard/group_vars Symbolic link
View File

@ -0,0 +1 @@
../inventory/group_vars

1
inventory-hard/host_vars Symbolic link
View File

@ -0,0 +1 @@
../inventory/host_vars

3
inventory-hard/hosts.yml Normal file
View File

@ -0,0 +1,3 @@
all:
hosts:
web3.desu.ltd:

View File

@ -2,7 +2,7 @@
- name: docker deploy netbox - name: docker deploy netbox
docker_container: docker_container:
name: netbox name: netbox
image: netboxcommunity/netbox:latest image: netboxcommunity/netbox:v2.11
env: env:
SUPERUSER_EMAIL: rehashedsalt@cock.li SUPERUSER_EMAIL: rehashedsalt@cock.li
SUPERUSER_PASSWORD: "{{ secret_netbox_user_pass }}" SUPERUSER_PASSWORD: "{{ secret_netbox_user_pass }}"

View File

@ -3,7 +3,7 @@
- name: configure packages via apt - name: configure packages via apt
block: block:
- name: update apt packages - name: update apt packages
apt: upgrade=yes autoremove=yes update_cache=yes cache_valid_time=86400 apt: upgrade=yes update_cache=yes cache_valid_time=86400
- name: install basic packages - name: install basic packages
apt: apt:
name: name:
@ -34,4 +34,6 @@
- whois - whois
- name: remove basic packages - name: remove basic packages
apt: state=absent name=unattended-upgrades apt: state=absent name=unattended-upgrades
- name: autoremove
apt: autoremove=yes
when: ansible_os_family == "Debian" when: ansible_os_family == "Debian"