diff --git a/frank/ansible/hosts b/frank/ansible/hosts index 5bbb400..755abdf 100644 --- a/frank/ansible/hosts +++ b/frank/ansible/hosts @@ -8,11 +8,12 @@ pkl2 ansible_host="clair" var_file=vars/devices/pkl2.yml pkl3 ansible_host="clair" var_file=vars/devices/pkl3.yml pkl4 ansible_host="clair" var_file=vars/devices/pkl4.yml moz1 ansible_host="clair" var_file=vars/devices/moz1.yml -moz2 ansible_host="clair" var_file=vars/devices/moz2.yml +; moz2 ansible_host="clair" var_file=vars/devices/moz2.yml mhl1 ansible_host="clair" var_file=vars/devices/mhl1.yml mhl2 ansible_host="clair" var_file=vars/devices/mhl2.yml mhl3 ansible_host="clair" var_file=vars/devices/mhl3.yml mhl4 ansible_host="clair" var_file=vars/devices/mhl4.yml chd1 ansible_host="clair" var_file=vars/devices/chd1.yml chd2 ansible_host="clair" var_file=vars/devices/chd2.yml -tan-home ansible-host="tan-home" var_file=vars/devices/tan-home.yml +tan-home ansible_host=tan-home ansible_user=barker var_file=vars/devices/tan-home.yml +mozimo-backup ansible_host=10.1.113.5 ansible_user=barker var_file=vars/devices/moz2.yml diff --git a/frank/ansible/prepare-device.yml b/frank/ansible/prepare-device.yml index abff0e3..44e2efa 100755 --- a/frank/ansible/prepare-device.yml +++ b/frank/ansible/prepare-device.yml @@ -16,6 +16,7 @@ roles: - common + - wheel - zsh - docker - netbird_client diff --git a/frank/ansible/roles/wheel/tasks/main.yml b/frank/ansible/roles/wheel/tasks/main.yml new file mode 100644 index 0000000..c20812d --- /dev/null +++ b/frank/ansible/roles/wheel/tasks/main.yml @@ -0,0 +1,18 @@ +--- +- name: Ensure group wheel exists + ansible.builtin.group: + name: wheel + state: present + +- name: Allow wheel group to have passwordless sudo + ansible.builtin.copy: + content: "%wheel ALL=(ALL) NOPASSWD: ALL" + dest: /etc/sudoers.d/wheel + mode: "0440" + validate: "/usr/sbin/visudo -cf %s" + +- name: Adding user to group wheel + ansible.builtin.user: + name: "{{ user }}" + groups: wheel + append: true diff --git a/frank/ansible/vars/devices/chd1.yml b/frank/ansible/vars/devices/chd1.yml index fb5701d..f1a828c 100644 --- a/frank/ansible/vars/devices/chd1.yml +++ b/frank/ansible/vars/devices/chd1.yml @@ -1,7 +1,5 @@ --- -hostname: chd1 -ssh_port: 22341 -user: pi -queue_name: moz-elante +hostname: chd-bar +user: barker +queue_name: chd-bar printer_port: "/dev/usb/lp0" -ip_address: 10.3.4.1 diff --git a/frank/ansible/vars/devices/moz2.yml b/frank/ansible/vars/devices/moz2.yml index db25ca6..0556435 100644 --- a/frank/ansible/vars/devices/moz2.yml +++ b/frank/ansible/vars/devices/moz2.yml @@ -1,6 +1,5 @@ --- -hostname: moz2 -ssh_port: 22542 -user: vari -queue_name: moz-elante +hostname: mozimo-backup +user: barker +queue_name: mozimo-backup printer_port: "/dev/usb/lp0"