diff options
Diffstat (limited to 'roles/update')
| -rw-r--r-- | roles/update/files/installurl | 2 | ||||
| -rw-r--r-- | roles/update/tasks/main.yml | 23 | 
2 files changed, 12 insertions, 13 deletions
| diff --git a/roles/update/files/installurl b/roles/update/files/installurl new file mode 100644 index 0000000..71117ea --- /dev/null +++ b/roles/update/files/installurl @@ -0,0 +1,2 @@ +https://mirror.ungleich.ch/pub/OpenBSD + diff --git a/roles/update/tasks/main.yml b/roles/update/tasks/main.yml index 558807e..9783926 100644 --- a/roles/update/tasks/main.yml +++ b/roles/update/tasks/main.yml @@ -9,19 +9,16 @@  # =========================================================================== #  --- -- name: Upgrading CentOs packages -  dnf: +- name: Copy default mirror for openbsd hosts +  copy: +    src: installurl +    dest: /etc/installurl +    owner: root +    group: "{{ group_root }}" +  when: inventory_hostname in groups["openbsd"] + +- name: Upgrading packages for distribution = {{ ansible_distribution }} +  package:      name: "*"      state: latest -  when: ansible_distribution == "CentOs" - -- name: Updating Debian packages -  apt: -    update_cache: yes -  when: ansible_distribution == "Debian" - -- name: Upgrading Debian packages to latest -  apt: -    upgrade: dist -  when: ansible_distribution == "Debian" |