aboutsummaryrefslogtreecommitdiffstats
path: root/roles/update
diff options
context:
space:
mode:
authorbinary <me@rgoncalves.se>2020-08-11 11:26:12 +0200
committerbinary <me@rgoncalves.se>2020-08-11 11:26:12 +0200
commitd7a8eefeca0ad9cb6e5b6379be92ad4f1c109a72 (patch)
tree70bbf28fd6152786a942b0fd66a74260361c9caa /roles/update
parent91b06c38d483c7f002843b8d9b538ace635c0abd (diff)
downloadinfrastructure-d7a8eefeca0ad9cb6e5b6379be92ad4f1c109a72.tar.gz
refactored for openbsd setup
Diffstat (limited to 'roles/update')
-rw-r--r--roles/update/tasks/main.yml23
1 files changed, 10 insertions, 13 deletions
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"
remember that computers suck.