Skip to content

Commit

Permalink
Enable apt updates and disable verification for sonos
Browse files Browse the repository at this point in the history
  • Loading branch information
aleksanderbl29 committed Aug 8, 2024
1 parent 724edc8 commit af56ecd
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 8 deletions.
1 change: 1 addition & 0 deletions .ansible-lint
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ skip_list:
- no-changed-when
- risky-shell-pipe
- var-naming[no-role-prefix]
- no-handler

exclude_paths:
- ansible_roles/
Expand Down
17 changes: 9 additions & 8 deletions main.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
- name: Homelab
hosts: prod
# hosts: rpi3
become: true
vars_files:
- ./vars/docker-vars.yml
Expand All @@ -9,13 +10,13 @@
- ./secrets/slack_code.yml

pre_tasks:
# - name: PRE TASK | Ensure apt cache is up to date
# ansible.builtin.apt:
# update_cache: true
# cache_valid_time: 10800
# upgrade: "yes"
# when:
# - ansible_facts.os_family == "Debian"
- name: PRE TASK | Ensure apt cache is up to date
ansible.builtin.apt:
update_cache: true
cache_valid_time: 10800
upgrade: "yes"
when:
- ansible_facts.os_family == "Debian"

- name: PRE TASK | Ensure Nala is installed on performant devices
ansible.builtin.apt:
Expand Down Expand Up @@ -103,7 +104,7 @@
ansible.builtin.import_role:
name: aleksanderbl29.sonos_stream
vars:
disable_verification: true
# disable_verification: true
when: "'hyperhdr' is in ansible_hostname"

- name: Setup figurine
Expand Down

0 comments on commit af56ecd

Please sign in to comment.