Catching up Sharingan, Geth, and ShadowArch roles

This commit is contained in:
2022-05-25 14:50:16 -05:00
parent 8b2b0be95b
commit 59b54619f7
21 changed files with 509 additions and 1503 deletions

View File

@@ -20,8 +20,8 @@
- name: Copy the motion config
become: yes
register: motion_config
copy:
src: "motion.conf/{{ inventory_hostname }}"
template:
src: "motion.conf.j2"
dest: "/etc/motion/motion.conf"
- name: Create motion log folder
@@ -41,7 +41,7 @@
when: motion_config.changed and motion_enabled
service:
name: motion
state: restarted
state: started
enabled: yes
- name: Allow override of motion service
@@ -64,6 +64,15 @@
block: |
dtoverlay=gpio-ir,gpio_pin={{ gpio_in_pin | default('18') }}
dtoverlay=gpio-ir-tx,gpio_pin={{ gpio_out_pin | default('17') }}
start_x=1
- name: Unset camera autodetect
become: yes
register: camera_autodetect
lineinfile:
path: "/boot/config.txt"
regexp: "camera_auto_detect"
line: "# camera_auto_detect=1"
- name: Set the dtparam
become: yes
@@ -89,7 +98,7 @@
- name: Reboot if needed
become: yes
when: modules_config.changed or dtparam.changed or dtoverlay.changed or modules_config_2.changed
when: modules_config.changed or dtparam.changed or dtoverlay.changed or modules_config_2.changed or camera_autodetect.changed
reboot:
- name: Wait if needed
@@ -101,15 +110,18 @@
register: lircd_supp_config
become: yes
copy:
src: "hardware.conf"
dest: "/etc/lirc/hardware.conf"
src: "{{ item }}"
dest: "/etc/lirc/{{ item }}"
loop:
- hardware.conf
- lirc_options.conf
- name: Copy lircd remote config
register: lircd_remote_config
become: yes
copy:
src: "lircd.conf/{{ inventory_hostname }}"
dest: /etc/lircd.conf
dest: /etc/lirc/lircd.conf
- name: Start the services
when: lircd_supp_config.changed or lircd_remote_config.changed