aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbinary <me@rgoncalves.se>2020-09-08 18:42:32 +0200
committerbinary <me@rgoncalves.se>2020-09-08 18:42:32 +0200
commita408697d37aaff288ceb891c8d10bfc6a097628d (patch)
treee5f38a79876b97a738b53feb3adbf91275317d27
parenteff2fccc90b7b00e723a8f47d37649ebb5cf1060 (diff)
downloadinfrastructure-a408697d37aaff288ceb891c8d10bfc6a097628d.tar.gz
basically refactored
-rw-r--r--play-all.yml28
-rw-r--r--roles/update/tasks/main.yml10
2 files changed, 3 insertions, 35 deletions
diff --git a/play-all.yml b/play-all.yml
index 071a006..9375914 100644
--- a/play-all.yml
+++ b/play-all.yml
@@ -1,18 +1,4 @@
-- name: Standalone role [-] setup_fail2ban
- hosts: all
- tags:
- - setup_fail2ban
- roles:
- - setup_fail2ban
-
-- name: Standalone role [-] setup_firewalld
- hosts: all
- tags:
- - setup_firewalld
- roles:
- - setup_firewalld
-
- name: Standalone role [-] setup_git
hosts: all
tags:
@@ -27,20 +13,6 @@
roles:
- setup_hostname
-- name: Standalone role [-] setup_httpd
- hosts: all
- tags:
- - setup_httpd
- roles:
- - setup_httpd
-
-- name: Standalone role [-] setup_mkdocs
- hosts: all
- tags:
- - setup_mkdocs
- roles:
- - setup_mkdocs
-
- name: Standalone role [-] setup_security
hosts: all
tags:
diff --git a/roles/update/tasks/main.yml b/roles/update/tasks/main.yml
index 4cd3541..0680189 100644
--- a/roles/update/tasks/main.yml
+++ b/roles/update/tasks/main.yml
@@ -9,7 +9,7 @@
# =========================================================================== #
---
-- name: Copy default mirror for openbsd hosts
+- name: Copy default mirror for system type = {{ ansible_distribution }}
copy:
src: installurl
dest: /etc/installurl
@@ -17,12 +17,8 @@
group: "{{ group_root }}"
when: inventory_hostname in groups["openbsd"]
-- name: Upgrading packages for distribution = {{ ansible_distribution }}
+- name: Upgrading packages for system type = {{ ansible_distribution }}
package:
name: "*"
state: latest
-
-- name: Applying syspatch for openbsd machines
- syspatch:
- apply: true
- when: inventory_hostname in groups["openbsd"]
+
remember that computers suck.