add daily driver host section to ansible

master
Paul Wako 2020-03-25 22:48:33 -04:00
parent 15dc9f78b3
commit 49ec4d478e
5 changed files with 15 additions and 9 deletions

View File

@ -1,3 +1,5 @@
Usage: `ansible-playbook main.yml -i hosts.cfg --limit=cabinet`
Assumes: Assumes:
- All: - All:

View File

@ -109,7 +109,7 @@ Unattended-Upgrade::Package-Blacklist {
// Automatically reboot *WITHOUT CONFIRMATION* if // Automatically reboot *WITHOUT CONFIRMATION* if
// the file /var/run/reboot-required is found after the upgrade // the file /var/run/reboot-required is found after the upgrade
//Unattended-Upgrade::Automatic-Reboot "false"; Unattended-Upgrade::Automatic-Reboot "false";
// Automatically reboot even if there are users currently logged in // Automatically reboot even if there are users currently logged in
// when Unattended-Upgrade::Automatic-Reboot is set to true // when Unattended-Upgrade::Automatic-Reboot is set to true

View File

@ -12,6 +12,7 @@
Port 22 Port 22
Port 2222 Port 2222
Port 37121
#AddressFamily any #AddressFamily any
#ListenAddress 0.0.0.0 #ListenAddress 0.0.0.0
#ListenAddress :: #ListenAddress ::

View File

@ -1,11 +1,14 @@
[router] [compute]
corsa fogcutter interface=eno1
[daily]
cabinet interface=enp9s0
[nfs] [nfs]
bigdummy interface=enp2s0 bigdummy interface=enp2s0
[compute]
fogcutter interface=eno1
[remote] [remote]
joe@madone.seaturtle.pw interface=enp1s0 joe@madone.seaturtle.pw interface=enp1s0
[router]
corsa

View File

@ -1,7 +1,7 @@
# All hosts are debian 10 # All hosts are debian 10
--- ---
# Common # Common
- hosts: compute,nfs,router - hosts: daily,compute,nfs,router
become: yes become: yes
handlers: handlers:
- import_tasks: handlers.yml - import_tasks: handlers.yml
@ -51,7 +51,7 @@
group: root group: root
mode: '0644' mode: '0644'
- name: Enable unattended-upgrades - name: Enable auto-upgrades
copy: copy:
src: files/20auto-upgrades src: files/20auto-upgrades
dest: /etc/apt/apt.conf.d/20auto-upgrades dest: /etc/apt/apt.conf.d/20auto-upgrades
@ -78,7 +78,7 @@
notify: Restart chrony service notify: Restart chrony service
# Core networking # Core networking
- name: Configure sshd_config to listen on 2222/22 and disable password auth - name: Configure sshd_config to listen on 37121/2222/22 and disable password auth
copy: copy:
src: files/sshd_config src: files/sshd_config
dest: /etc/ssh/sshd_config dest: /etc/ssh/sshd_config