Преглед изворни кода

Adding various tags to be used with ansible

Emmanuel Bouthenot пре 7 година
родитељ
комит
1a2b7bbed0

+ 9 - 0
roles/common/tasks/main.yml

@@ -1,18 +1,27 @@
 - include: base.yml
+  tags: [base]
 - include: ssl.yml
+  tags: [ssl]
   when: ssl_certs or ssl_certs_auto
 - include: dotfiles.yml
   when: with_dotfiles
 - include: dns.yml
+  tags: [dns]
 - include: firewall.yml
+  tags: [firewall]
   when: with_firewall
 - include: ovh.yml
   when: with_ovh
 - include: security.yml
+  tags: [security]
 - include: smtp.yml
+  tags: [smtp]
   when: with_postfix or with_mail_aliases
 - include: dkim.yml
+  tags: [dkim]
   when: with_opendkim
 - include: ssh.yml
+  tags: [ssh]
 - include: smartd.yml
+  tags: [smartd]
   when: with_smartd

+ 2 - 0
roles/common/tasks/security.yml

@@ -79,6 +79,8 @@
     - 'systemd'
     - 'zabbix-agentd'
   when: with_logcheck
+  tags:
+      - 'logcheck'
 
 - name: 'Update logcheck cron job'
   template:

+ 2 - 0
roles/dbserver/tasks/main.yml

@@ -1,4 +1,6 @@
 - include: mysql.yml
+  tags: [sql,mysql]
   when: with_mysql or with_mariadb
 - include: postgresql.yml
+  tags: [sql,postgresql]
   when: with_postgresql

+ 2 - 0
roles/ftpserver/tasks/main.yml

@@ -1,4 +1,6 @@
 - include: 'common.yml'
+  tags: [ftp]
   when: with_ftp
 - include: 'pure-ftpd.yml'
+  tags: [ftp,pure-ftpd]
   when: with_ftp

+ 2 - 0
roles/hypervisor/tasks/main.yml

@@ -1,2 +1,4 @@
 - include: 'xen.yml'
+  tags: [hypervisor,xen]
 - include: 'ganeti.yml'
+  tags: [hypervisor,ganeti]

+ 3 - 0
roles/monitoring/tasks/main.yml

@@ -1,6 +1,9 @@
 - include: munin.yml
+  tags: [monitoring,munin]
   when: with_munin or with_munin_node
 - include: mon.yml
+  tags: [monitoring,mon]
   when: with_mon
 - include: zabbix.yml
+  tags: [monitoring,zabbix]
   when: with_zabbix_agent

+ 3 - 0
roles/webserver/tasks/main.yml

@@ -1,6 +1,9 @@
 - include: apache2.yml
+  tags: [web,apache2]
   when: with_apache2
 - include: nginx.yml
+  tags: [web,nginx]
   when: with_nginx
 - include: php.yml
+  tags: [web,php]
   when: with_php