Browse Source

Using more verbose 'dependencies' tag (#393)

Manfred Touron 9 years ago
parent
commit
16c93ea486
No account linked to committer's email address

+ 1
- 1
README.md View File

@@ -182,7 +182,7 @@ To run just one or more piece, use tags. I try to tag all my includes for easy i
182 182
 
183 183
 You might find that it fails at one point or another. This is probably because something needs to be done manually, usually because there’s no good way of automating it. Fortunately, all the tasks are clearly named so you should be able to find out where it stopped. I’ve tried to add comments where manual intervention is necessary.
184 184
 
185
-The `deps` tag installs dependencies, the tagged tasks do not rely on the user settings (`vars/user.yml`).
185
+The `dependencies` tag installs dependencies, the tagged tasks do not rely on the user settings (`vars/user.yml`).
186 186
 You might find that very convenient for cloud/Docker images.
187 187
 
188 188
 ### 6. Set up DNS

+ 1
- 1
roles/common/tasks/encfs.yml View File

@@ -5,7 +5,7 @@
5 5
     - fuse
6 6
     - libfuse-dev
7 7
   tags:
8
-    - deps
8
+    - dependencies
9 9
 
10 10
 - name: Create encrypted directory
11 11
   file: state=directory path=/encrypted

+ 1
- 1
roles/common/tasks/google_auth.yml View File

@@ -8,7 +8,7 @@
8 8
     - libpam0g-dev
9 9
     - libqrencode3
10 10
   tags:
11
-    - deps
11
+    - dependencies
12 12
 
13 13
 - name: Download Google authenticator pam module
14 14
   get_url: url=https://google-authenticator.googlecode.com/files/libpam-google-authenticator-{{ google_auth_version }}-source.tar.bz2

+ 1
- 1
roles/common/tasks/google_auth_mod.yml View File

@@ -9,7 +9,7 @@
9 9
     - libpam0g-dev
10 10
     - libqrencode3
11 11
   tags:
12
-    - deps
12
+    - dependencies
13 13
 
14 14
 - name: Update sshd config to enable challenge responses
15 15
   lineinfile: dest=/etc/ssh/sshd_config

+ 4
- 4
roles/common/tasks/main.yml View File

@@ -4,17 +4,17 @@
4 4
   template: src=apt_sources.list.j2 dest=/etc/apt/sources.list
5 5
   when: ansible_distribution == 'Ubuntu'
6 6
   tags:
7
-    - deps
7
+    - dependencies
8 8
 
9 9
 - name: Update apt cache
10 10
   apt: update_cache=yes
11 11
   tags:
12
-    - deps
12
+    - dependencies
13 13
 
14 14
 - name: Upgrade all safe packages
15 15
   apt: upgrade=safe
16 16
   tags:
17
-    - deps
17
+    - dependencies
18 18
 
19 19
 - name: Install necessities and nice-to-haves
20 20
   apt: pkg={{ item }} state=installed
@@ -39,7 +39,7 @@
39 39
     - vim
40 40
     - zsh
41 41
   tags:
42
-    - deps
42
+    - dependencies
43 43
 
44 44
 - name: Set timezone to UTC
45 45
   action: shell echo Etc/UTC > /etc/timezone

+ 1
- 1
roles/common/tasks/ntp.yml View File

@@ -4,7 +4,7 @@
4 4
 - name: Install ntp
5 5
   apt: pkg=ntp state=installed
6 6
   tags:
7
-    - deps
7
+    - dependencies
8 8
 
9 9
 - name: Configure ntp
10 10
   template: src=ntp.conf.j2 dest=/etc/ntp.conf

+ 1
- 1
roles/common/tasks/security.yml View File

@@ -5,7 +5,7 @@
5 5
     - lynis
6 6
     - rkhunter
7 7
   tags:
8
-    - deps
8
+    - dependencies
9 9
 
10 10
 - name: Copy fail2ban configuration into place
11 11
   template: src=etc_fail2ban_jail.local.j2 dest=/etc/fail2ban/jail.local

+ 1
- 1
roles/common/tasks/ufw.yml View File

@@ -5,7 +5,7 @@
5 5
 - name: Install ufw
6 6
   apt: pkg=ufw state=present
7 7
   tags:
8
-    - deps
8
+    - dependencies
9 9
 
10 10
 - name: Deny everything
11 11
   ufw: policy=deny

+ 1
- 1
roles/git/tasks/cgit.yml View File

@@ -6,7 +6,7 @@
6 6
     - libssl-dev
7 7
     - python-pip
8 8
   tags:
9
-    - deps
9
+    - dependencies
10 10
 
11 11
 - name: Install cgit pip dependencies
12 12
   pip: name={{ item }}

+ 1
- 1
roles/git/tasks/gitolite_packaged.yml View File

@@ -10,7 +10,7 @@
10 10
 - name: Install gitolite3 package
11 11
   apt: pkg=gitolite3 state=installed
12 12
   tags:
13
-    - deps
13
+    - dependencies
14 14
 
15 15
 - name: Copy .gitolite.rc file
16 16
   copy: src=home_git_.gitolite.rc

+ 1
- 1
roles/ircbouncer/tasks/znc.yml View File

@@ -16,7 +16,7 @@
16 16
     - python3-dev
17 17
     - swig
18 18
   tags:
19
-    - deps
19
+    - dependencies
20 20
 
21 21
 - name: Download znc release
22 22
   get_url: url=http://znc.in/releases/archive/znc-{{ znc_version }}.tar.gz dest=/root/znc-{{ znc_version }}.tar.gz

+ 6
- 6
roles/mailserver/tasks/dovecot.yml View File

@@ -2,7 +2,7 @@
2 2
   apt_repository: repo='deb http://http.debian.net/debian wheezy-backports main'
3 3
   when: ansible_distribution_release == 'wheezy'
4 4
   tags:
5
-    - deps
5
+    - dependencies
6 6
 
7 7
 - name: Install Dovecot and related packages on Debian 7
8 8
   apt: pkg={{ item }} update_cache=yes state=latest default_release=wheezy-backports
@@ -15,7 +15,7 @@
15 15
     - dovecot-pop3d
16 16
   when: ansible_distribution_release == 'wheezy'
17 17
   tags:
18
-    - deps
18
+    - dependencies
19 19
 
20 20
 - name: Install Dovecot and related packages on distributions other than Debian 7
21 21
   apt: pkg={{ item }} update_cache=yes state=installed
@@ -28,25 +28,25 @@
28 28
     - dovecot-pop3d
29 29
   when: ansible_distribution_release != 'wheezy'
30 30
   tags:
31
-    - deps
31
+    - dependencies
32 32
 
33 33
 - name: Install Postgres 9.1 for Dovecot on older distributions
34 34
   apt: pkg=postgresql-9.1 state=present
35 35
   when: ansible_distribution_release != 'trusty' and ansible_distribution_release != 'jessie'
36 36
   tags:
37
-    - deps
37
+    - dependencies
38 38
 
39 39
 - name: Install Postgres 9.3 for Dovecot on Ubuntu Trusty
40 40
   apt: pkg=postgresql-9.3 state=present
41 41
   when: ansible_distribution_release == 'trusty'
42 42
   tags:
43
-    - deps
43
+    - dependencies
44 44
 
45 45
 - name: Install Postgres 9.4 for Dovecot on Debian Jessie
46 46
   apt: pkg=postgresql-9.4 state=present
47 47
   when: ansible_distribution_release == 'jessie'
48 48
   tags:
49
-    - deps
49
+    - dependencies
50 50
 
51 51
 - name: Create vmail group
52 52
   group: name=vmail state=present gid=5000

+ 2
- 2
roles/mailserver/tasks/dspam.yml View File

@@ -7,7 +7,7 @@
7 7
     - postfix-pcre
8 8
   when: ansible_distribution_release == 'wheezy'
9 9
   tags:
10
-    - deps
10
+    - dependencies
11 11
 
12 12
 - name: Install dspam and related packages on distributions other than wheezy
13 13
   apt: pkg={{ item }} state=installed
@@ -18,7 +18,7 @@
18 18
     - postfix-pcre
19 19
   when: ansible_distribution_release != 'wheezy'
20 20
   tags:
21
-    - deps
21
+    - dependencies
22 22
 
23 23
 - name: Create dspam directory
24 24
   file: state=directory path=/decrypted/dspam group=dspam owner=dspam

+ 1
- 1
roles/mailserver/tasks/opendkim.yml View File

@@ -7,7 +7,7 @@
7 7
     - opendkim
8 8
     - opendkim-tools
9 9
   tags:
10
-    - deps
10
+    - dependencies
11 11
 
12 12
 - name: Create OpenDKIM config directory
13 13
   file: state=directory path=/etc/opendkim group=opendkim owner=opendkim

+ 4
- 4
roles/mailserver/tasks/postfix.yml View File

@@ -2,19 +2,19 @@
2 2
   apt: pkg=postgresql-9.1 state=present
3 3
   when: ansible_distribution_release != 'trusty' and ansible_distribution_release != 'jessie'
4 4
   tags:
5
-    - deps
5
+    - dependencies
6 6
 
7 7
 - name: Install Postgres 9.3 on Ubuntu Trusty
8 8
   apt: pkg=postgresql-9.3 state=present
9 9
   when: ansible_distribution_release == 'trusty'
10 10
   tags:
11
-    - deps
11
+    - dependencies
12 12
 
13 13
 - name: Install Postgres 9.4 on Debian Jessie
14 14
   apt: pkg=postgresql-9.4 state=present
15 15
   when: ansible_distribution_release == 'jessie'
16 16
   tags:
17
-    - deps
17
+    - dependencies
18 18
 
19 19
 - name: Install Postfix and related packages
20 20
   apt: pkg={{ item }} state=installed
@@ -27,7 +27,7 @@
27 27
     - python-psycopg2
28 28
     - sasl2-bin
29 29
   tags:
30
-    - deps
30
+    - dependencies
31 31
 
32 32
 - name: Set postgres password
33 33
   command: sudo -u {{ db_admin_username }} psql -d {{ db_admin_username }} -c "ALTER USER postgres with  password '{{ db_admin_password }}';"

+ 2
- 2
roles/mailserver/tasks/solr.yml View File

@@ -5,7 +5,7 @@
5 5
     - solr-tomcat
6 6
   when: ansible_distribution_release == 'wheezy'
7 7
   tags:
8
-    - deps
8
+    - dependencies
9 9
 
10 10
 - name: Install Solr and related packages on distributions other than wheezy
11 11
   apt: pkg={{ item }} state=installed
@@ -14,7 +14,7 @@
14 14
     - solr-tomcat
15 15
   when: ansible_distribution_release != 'wheezy'
16 16
   tags:
17
-    - deps
17
+    - dependencies
18 18
 
19 19
 - name: Work around Debian bug and copy Solr schema file into place
20 20
   copy: src=solr-schema.xml dest=/etc/solr/conf/schema.xml group=root owner=root

+ 1
- 1
roles/mailserver/tasks/z-push.yml View File

@@ -6,7 +6,7 @@
6 6
     - php5-cli
7 7
     - php5-imap
8 8
   tags:
9
-    - deps
9
+    - dependencies
10 10
 
11 11
 - name: Download z-push release
12 12
   get_url:

+ 3
- 3
roles/monitoring/tasks/collectd.yml View File

@@ -2,7 +2,7 @@
2 2
   apt_repository: repo='deb http://http.debian.net/debian wheezy-backports main'
3 3
   when: ansible_distribution_release == 'wheezy'
4 4
   tags:
5
-    - deps
5
+    - dependencies
6 6
 
7 7
 - name: Install collectd dependencies on wheezy from backports
8 8
   apt: pkg={{ item }} state=installed default_release=wheezy-backports
@@ -12,7 +12,7 @@
12 12
     - python-dev
13 13
   when: ansible_distribution_release == 'wheezy'
14 14
   tags:
15
-    - deps
15
+    - dependencies
16 16
 
17 17
 - name: Install collectd dependencies on distributions other than wheezy
18 18
   apt: pkg={{ item }} state=installed
@@ -22,7 +22,7 @@
22 22
     - python-dev
23 23
   when: ansible_distribution_release != 'wheezy'
24 24
   tags:
25
-    - deps
25
+    - dependencies
26 26
 
27 27
 - name: Download collectd
28 28
   get_url: url=http://collectd.org/files/collectd-{{collectd_version}}.tar.gz

+ 1
- 1
roles/monitoring/tasks/logwatch.yml View File

@@ -4,7 +4,7 @@
4 4
     - libdate-manip-perl
5 5
     - logwatch
6 6
   tags:
7
-    - deps
7
+    - dependencies
8 8
 
9 9
 - name: Configure logwatch
10 10
   template: src=etc_logwatch_conf_logwatch.conf.j2 dest=/etc/logwatch/conf/logwatch.conf

+ 1
- 1
roles/monitoring/tasks/monit.yml View File

@@ -8,7 +8,7 @@
8 8
 - name: Install monit
9 9
   apt: pkg=monit state=installed
10 10
   tags:
11
-    - deps
11
+    - dependencies
12 12
 
13 13
 - name: Copy monit master config file into place
14 14
   copy: src=etc_monit_monitrc dest=/etc/monit/monitrc

+ 1
- 1
roles/newebe/tasks/newebe.yml View File

@@ -16,7 +16,7 @@
16 16
     - python-lxml
17 17
     - supervisor
18 18
   tags:
19
-    - deps
19
+    - dependencies
20 20
 
21 21
 - name: Install Newebe
22 22
   pip: name='git+https://github.com/gelnior/newebe.git#egg=newebe'

+ 1
- 1
roles/news/tasks/selfoss.yml View File

@@ -24,7 +24,7 @@
24 24
     - php5-pgsql
25 25
     - php5-gd
26 26
   tags:
27
-    - deps
27
+    - dependencies
28 28
 
29 29
 - name: Create database user for selfoss
30 30
   postgresql_user: login_host=localhost login_user={{ db_admin_username }} login_password="{{ db_admin_password }}" name={{ selfoss_db_username }} password="{{ selfoss_db_password }}" state=present

+ 10
- 10
roles/owncloud/tasks/owncloud.yml View File

@@ -6,13 +6,13 @@
6 6
   apt: pkg=postgresql-9.1 state=present
7 7
   when: ansible_distribution_release != 'trusty'
8 8
   tags:
9
-    - deps
9
+    - dependencies
10 10
 
11 11
 - name: Install Postgres 9.3 on Ubuntu Trusty
12 12
   apt: pkg=postgresql-9.3 state=present
13 13
   when: ansible_distribution_release == 'trusty'
14 14
   tags:
15
-    - deps
15
+    - dependencies
16 16
 
17 17
 - name: Install ownCloud dependencies
18 18
   apt: pkg={{ item }} state=present
@@ -21,7 +21,7 @@
21 21
     - php-apc
22 22
     - python-psycopg2
23 23
   tags:
24
-    - deps
24
+    - dependencies
25 25
 
26 26
 - name: Set postgres password
27 27
   command: sudo -u {{ db_admin_username }} psql -d {{ db_admin_username }} -c "ALTER USER postgres with  password '{{ db_admin_password }}';"
@@ -36,42 +36,42 @@
36 36
   apt_key: url=http://download.opensuse.org/repositories/isv:ownCloud:community/Debian_7.0/Release.key state=present
37 37
   when: ansible_distribution_release == 'wheezy'
38 38
   tags:
39
-    - deps
39
+    - dependencies
40 40
 
41 41
 - name: Add ownCloud OpenSuSE repository for Debian 7
42 42
   apt_repository: repo='deb http://download.opensuse.org/repositories/isv:ownCloud:community/Debian_7.0/ /'
43 43
   when: ansible_distribution_release == 'wheezy'
44 44
   tags:
45
-    - deps
45
+    - dependencies
46 46
 
47 47
 - name: Ensure repository key for ownCloud is in place for Ubuntu 14.04
48 48
   apt_key: url=http://download.opensuse.org/repositories/isv:ownCloud:community/xUbuntu_14.04/Release.key state=present
49 49
   when: ansible_distribution_release == 'trusty'
50 50
   tags:
51
-    - deps
51
+    - dependencies
52 52
 
53 53
 - name: Add ownCloud OpenSuSE repository for Ubuntu 14.04
54 54
   apt_repository: repo='deb http://download.opensuse.org/repositories/isv:ownCloud:community/xUbuntu_14.04/ /'
55 55
   when: ansible_distribution_release == 'trusty'
56 56
   tags:
57
-    - deps
57
+    - dependencies
58 58
 
59 59
 - name: Ensure repository key for ownCloud is in place for Ubuntu 12.04
60 60
   apt_key: url=http://download.opensuse.org/repositories/isv:ownCloud:community/xUbuntu_12.04/Release.key state=present
61 61
   when: ansible_distribution_release == 'precise'
62 62
   tags:
63
-    - deps
63
+    - dependencies
64 64
 
65 65
 - name: Add ownCloud OpenSuSE repository for Ubuntu 12.04
66 66
   apt_repository: repo='deb http://download.opensuse.org/repositories/isv:ownCloud:community/xUbuntu_12.04/ /'
67 67
   when: ansible_distribution_release == 'precise'
68 68
   tags:
69
-    - deps
69
+    - dependencies
70 70
 
71 71
 - name: Install ownCloud (possibly from OpenSuSE repository)
72 72
   apt: pkg=owncloud update_cache=yes
73 73
   tags:
74
-    - deps
74
+    - dependencies
75 75
 
76 76
 - name: Owncloud www directory
77 77
   file: state=directory path=/var/www/owncloud

+ 1
- 1
roles/readlater/tasks/wallabag.yml View File

@@ -21,7 +21,7 @@
21 21
     - php5-pgsql
22 22
     - php5-tidy
23 23
   tags:
24
-    - deps
24
+    - dependencies
25 25
 
26 26
 - name: Create database user for wallabag
27 27
   postgresql_user: login_host=localhost

+ 2
- 2
roles/tarsnap/tasks/tarsnap.yml View File

@@ -4,7 +4,7 @@
4 4
   changed_when: "tarnsap_installed.stderr != ''"
5 5
   ignore_errors: yes
6 6
   tags:
7
-    - deps
7
+    - dependencies
8 8
 
9 9
 - name: Install dependencies for Tarsnap
10 10
   when: tarnsap_installed|failed
@@ -14,7 +14,7 @@
14 14
     - libssl-dev
15 15
     - zlib1g-dev
16 16
   tags:
17
-    - deps
17
+    - dependencies
18 18
 
19 19
 - name: Download the current tarsnap code signing key
20 20
   when: tarnsap_installed|failed

+ 1
- 1
roles/vpn/tasks/openvpn.yml View File

@@ -9,7 +9,7 @@
9 9
     - openvpn
10 10
     - udev
11 11
   tags:
12
-    - deps
12
+    - dependencies
13 13
 
14 14
 - name: Generate RSA keys for the CA and Server
15 15
   command: openssl genrsa -out {{ item }}.key {{ openvpn_key_size }}

+ 4
- 4
roles/webmail/tasks/roundcube.yml View File

@@ -2,12 +2,12 @@
2 2
   lineinfile: dest=/etc/apt/sources.list line="deb http://http.debian.net/debian wheezy-backports main"
3 3
   when: ansible_distribution_release == 'wheezy'
4 4
   tags:
5
-    - deps
5
+    - dependencies
6 6
   
7 7
 - name: Update apt cache for backports
8 8
   apt: update_cache=yes
9 9
   tags:
10
-    - deps
10
+    - dependencies
11 11
 
12 12
 - name: Install Roundcube from wheezy-backports
13 13
   apt: pkg={{ item }} state=latest default_release=wheezy-backports
@@ -17,7 +17,7 @@
17 17
   - roundcube-plugins
18 18
   when: ansible_distribution_release == 'wheezy'
19 19
   tags:
20
-    - deps
20
+    - dependencies
21 21
 
22 22
 - name: Install Roundcube on Ubuntu 14.04 LTS
23 23
   apt: pkg={{ item }} state=latest
@@ -27,7 +27,7 @@
27 27
   - roundcube-plugins
28 28
   when: ansible_distribution_release == 'trusty'
29 29
   tags:
30
-    - deps
30
+    - dependencies
31 31
 
32 32
 - name: Configure Roundcube database
33 33
   template: src={{ item.src }} dest={{ item.dest }} group={{ item.group }} mode={{ item.mode }} owner=root force=yes

+ 5
- 5
roles/xmpp/tasks/prosody.yml View File

@@ -1,31 +1,31 @@
1 1
 - name: Ensure repository key for Prosody is in place
2 2
   apt_key: url=https://prosody.im/files/prosody-debian-packages.key state=present
3 3
   tags:
4
-    - deps
4
+    - dependencies
5 5
 
6 6
 # Prosody supplies repo for sid, squeeze, wheezy, jessie, trusty, saucy, raring, quantal, precise and lucid
7 7
 - name: Add Prosody Debian/Ubuntu repository
8 8
   apt_repository: repo="deb http://packages.prosody.im/debian {{ ansible_distribution_release }} main"
9 9
   tags:
10
-    - deps
10
+    - dependencies
11 11
 
12 12
 - name: Install Prosody from official repository
13 13
   apt: pkg=prosody update_cache=yes
14 14
   tags:
15
-    - deps
15
+    - dependencies
16 16
 
17 17
 - name: Install lua-sec-prosody on Debian Wheezy and Ubuntu Precise
18 18
   apt: pkg=lua-sec-prosody update_cache=yes
19 19
   when: ansible_distribution_release == 'wheezy' or ansible_distribution_release == 'precise'
20 20
   tags:
21
-    - deps
21
+    - dependencies
22 22
 
23 23
 
24 24
 - name: Install lua-sec 0.5+
25 25
   apt: pkg=lua-sec update_cache=yes
26 26
   when: ansible_distribution_release == 'trusty' or ansible_distribution_release == 'jessie'
27 27
   tags:
28
-    - deps
28
+    - dependencies
29 29
 
30 30
 - name: Add prosody user to ssl-cert group
31 31
   user: name=prosody groups=ssl-cert append=yes

Loading…
Cancel
Save