Skip to content
This repository has been archived by the owner on May 27, 2024. It is now read-only.

Commit

Permalink
fix(Playbook):fixed check for Bielefeld APT-Service
Browse files Browse the repository at this point in the history
  • Loading branch information
dweinholz committed Jul 12, 2022
1 parent 78cc86b commit d016920
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions VirtualMachineService/ancon/playbooks/generic_playbook.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,23 +4,20 @@
gather_facts: yes
vars_files:
pre_tasks:

- name: PRE_TASK Wait for cloud-init / user-data to finish
ansible.builtin.command: cloud-init status --wait
changed_when: false

- name: Populate service facts
ansible.builtin.service_facts:

- name: Set if APT-Mirror Service Exists
set_fact:
bielefeld_mirror_service_exist: "'de.NBI_Bielefeld_environment' in services"

- 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: 25
retries: 35
delay: 10
when: bielefeld_mirror_service_exist
when: services['de.NBI_Bielefeld_environment.service'] is defined

- name: PRE_TASK Disable unattended upgrades
lineinfile:
Expand Down

0 comments on commit d016920

Please sign in to comment.