Browse Source

rm used in place of argument state=absent to file module

Laurent Arnoud 9 years ago
parent
commit
ad22aed4cc

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

5
   command: mv /etc/apache2/sites-available/{{ domain }} /etc/apache2/sites-available/{{ domain }}.conf removes=/etc/apache2/sites-available/{{ domain }}
5
   command: mv /etc/apache2/sites-available/{{ domain }} /etc/apache2/sites-available/{{ domain }}.conf removes=/etc/apache2/sites-available/{{ domain }}
6
 
6
 
7
 - name: Remove old sites-enabled/{{ domain }} symlink (new one will be created by a2ensite)
7
 - name: Remove old sites-enabled/{{ domain }} symlink (new one will be created by a2ensite)
8
-  command: rm /etc/apache2/sites-enabled/{{ domain }} removes=/etc/apache2/sites-enabled/{{ domain }}
8
+  file: path=/etc/apache2/sites-enabled/{{ domain }} state=absent
9
 
9
 
10
 - name: Configure the Apache HTTP server for the blog
10
 - name: Configure the Apache HTTP server for the blog
11
   template: src=etc_apache2_sites-available_blog.j2 dest=/etc/apache2/sites-available/{{ domain }}.conf group=root owner=root
11
   template: src=etc_apache2_sites-available_blog.j2 dest=/etc/apache2/sites-available/{{ domain }}.conf group=root owner=root

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

38
   command: mv /etc/apache2/sites-available/cgit /etc/apache2/sites-available/cgit.conf removes=/etc/apache2/sites-available/cgit
38
   command: mv /etc/apache2/sites-available/cgit /etc/apache2/sites-available/cgit.conf removes=/etc/apache2/sites-available/cgit
39
 
39
 
40
 - name: Remove old sites-enabled/cgit symlink (new one will be created by a2ensite)
40
 - name: Remove old sites-enabled/cgit symlink (new one will be created by a2ensite)
41
-  command: rm /etc/apache2/sites-enabled/cgit removes=/etc/apache2/sites-enabled/cgit
41
+  file: path=/etc/apache2/sites-enabled/cgit state=absent
42
 
42
 
43
 - name: Configure the Apache HTTP server for cgit
43
 - name: Configure the Apache HTTP server for cgit
44
   template: src=etc_apache2_sites-available_cgit.j2
44
   template: src=etc_apache2_sites-available_cgit.j2

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

52
   command: mv /etc/apache2/sites-available/selfoss /etc/apache2/sites-available/selfoss.conf removes=/etc/apache2/sites-available/selfoss
52
   command: mv /etc/apache2/sites-available/selfoss /etc/apache2/sites-available/selfoss.conf removes=/etc/apache2/sites-available/selfoss
53
 
53
 
54
 - name: Remove old sites-enabled/selfoss symlink (new one will be created by a2ensite)
54
 - name: Remove old sites-enabled/selfoss symlink (new one will be created by a2ensite)
55
-  command: rm /etc/apache2/sites-enabled/selfoss removes=/etc/apache2/sites-enabled/selfoss
55
+  file: path=/etc/apache2/sites-enabled/selfoss state=absent
56
 
56
 
57
 - name: Configure the Apache HTTP server for selfoss
57
 - name: Configure the Apache HTTP server for selfoss
58
   template: src=etc_apache2_sites-available_selfoss.j2 dest=/etc/apache2/sites-available/selfoss.conf group=root owner=root
58
   template: src=etc_apache2_sites-available_selfoss.j2 dest=/etc/apache2/sites-available/selfoss.conf group=root owner=root

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

96
   command: mv /etc/apache2/sites-available/owncloud /etc/apache2/sites-available/owncloud.conf removes=/etc/apache2/sites-available/owncloud
96
   command: mv /etc/apache2/sites-available/owncloud /etc/apache2/sites-available/owncloud.conf removes=/etc/apache2/sites-available/owncloud
97
 
97
 
98
 - name: Remove old sites-enabled/owncloud symlink (new one will be created by a2ensite)
98
 - name: Remove old sites-enabled/owncloud symlink (new one will be created by a2ensite)
99
-  command: rm /etc/apache2/sites-enabled/owncloud removes=/etc/apache2/sites-enabled/owncloud
99
+  file: path=/etc/apache2/sites-enabled/owncloud state=absent
100
 
100
 
101
 - name: Configure the Apache HTTP server for ownCloud
101
 - name: Configure the Apache HTTP server for ownCloud
102
   template: src=etc_apache2_sites-available_owncloud.j2 dest=/etc/apache2/sites-available/owncloud.conf group=root owner=root
102
   template: src=etc_apache2_sites-available_owncloud.j2 dest=/etc/apache2/sites-available/owncloud.conf group=root owner=root

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

81
   command: mv /etc/apache2/sites-available/wallabag /etc/apache2/sites-available/wallabag.conf removes=/etc/apache2/sites-available/wallabag
81
   command: mv /etc/apache2/sites-available/wallabag /etc/apache2/sites-available/wallabag.conf removes=/etc/apache2/sites-available/wallabag
82
 
82
 
83
 - name: Remove old sites-enabled/wallabag symlink (new one will be created by a2ensite)
83
 - name: Remove old sites-enabled/wallabag symlink (new one will be created by a2ensite)
84
-  command: rm /etc/apache2/sites-enabled/wallabag removes=/etc/apache2/sites-enabled/wallabag
84
+  file: path=/etc/apache2/sites-enabled/wallabag state=absent
85
 
85
 
86
 - name: Configure the Apache HTTP server for wallabag
86
 - name: Configure the Apache HTTP server for wallabag
87
   template: src=etc_apache2_sites-available_wallabag.j2
87
   template: src=etc_apache2_sites-available_wallabag.j2

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

65
   command: mv /etc/apache2/sites-available/roundcube /etc/apache2/sites-available/roundcube.conf removes=/etc/apache2/sites-available/roundcube
65
   command: mv /etc/apache2/sites-available/roundcube /etc/apache2/sites-available/roundcube.conf removes=/etc/apache2/sites-available/roundcube
66
 
66
 
67
 - name: Remove old sites-enabled/roundcube symlink (new one will be created by a2ensite)
67
 - name: Remove old sites-enabled/roundcube symlink (new one will be created by a2ensite)
68
-  command: rm /etc/apache2/sites-enabled/roundcube removes=/etc/apache2/sites-enabled/roundcube
68
+  file: path=/etc/apache2/sites-enabled/roundcube state=absent
69
 
69
 
70
 - name: Configure the Apache HTTP server for roundcube
70
 - name: Configure the Apache HTTP server for roundcube
71
   template: src=etc_apache2_sites-available_roundcube.j2 dest=/etc/apache2/sites-available/roundcube.conf group=root owner=root force=yes
71
   template: src=etc_apache2_sites-available_roundcube.j2 dest=/etc/apache2/sites-available/roundcube.conf group=root owner=root force=yes

Loading…
Cancel
Save