-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #499 from deNBI/dev
Dev
- Loading branch information
Showing
12 changed files
with
148 additions
and
146 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
--- | ||
- repo: https://github.com/ansible/ansible-lint.git | ||
rev: v6.17.2 | ||
hooks: | ||
- id: ansible-lint | ||
repos: | ||
|
||
- repo: https://github.com/ansible/ansible-lint.git | ||
rev: v6.17.2 | ||
hooks: | ||
- id: ansible-lint |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
--- | ||
- name: POST_TASK enable unattended upgrades | ||
ansible.builtin.lineinfile: | ||
path: /etc/apt/apt.conf.d/10periodic | ||
regexp: ^APT::Periodic::Unattended-Upgrade | ||
line: APT::Periodic::Unattended-Upgrade "1"; | ||
create: true | ||
- name: POST_TASK Start apt-daily.* systemd services | ||
ansible.builtin.service: | ||
name: "{{ item }}" | ||
state: started | ||
with_items: | ||
- unattended-upgrades | ||
- apt-daily | ||
- apt-daily.timer |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
--- | ||
- name: Populate service facts | ||
ansible.builtin.service_facts: | ||
- name: Wait till Apt_Mirror de.NBI Bielefeld Service is done | ||
ansible.builtin.service_facts: | ||
until: services['de.NBI_Bielefeld_environment.service'].state == 'stopped' | ||
retries: 35 | ||
delay: 10 | ||
when: services['de.NBI_Bielefeld_environment.service'] is defined | ||
|
||
- name: PRE_TASK Disable unattended upgrades | ||
ansible.builtin.lineinfile: | ||
path: /etc/apt/apt.conf.d/10periodic | ||
regexp: ^APT::Periodic::Unattended-Upgrade | ||
line: APT::Periodic::Unattended-Upgrade "0"; | ||
create: true | ||
- name: PRE_TASK Stop apt-daily.* systemd services | ||
ansible.builtin.service: | ||
name: "{{ item }}" | ||
state: stopped | ||
with_items: | ||
- unattended-upgrades | ||
- apt-daily | ||
- apt-daily.timer | ||
- apt-daily-upgrade | ||
- apt-daily-upgrade.timer | ||
|
||
- name: PRE_TASK Wait for automatic system updates 1 | ||
ansible.builtin.shell: while sudo fuser /var/lib/dpkg/lock >/dev/null 2>&1; do sleep 1; done; | ||
changed_when: false | ||
|
||
- name: PRE_TASK Wait for automatic system updates 2 | ||
ansible.builtin.shell: while sudo fuser /var/lib/dpkg/lock-frontend >/dev/null 2>&1; do sleep 1; done; | ||
changed_when: false | ||
|
||
- name: PRE_TASK Update apt cache | ||
become: true | ||
ansible.builtin.apt: | ||
upgrade: true | ||
update_cache: true | ||
autoremove: true | ||
autoclean: true | ||
|
||
- name: Pip | ||
ansible.builtin.apt: | ||
name: python3-pip | ||
state: latest |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.