浏览代码

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

Laurent Arnoud 9 年前
父节点
当前提交
ad22aed4cc

+ 1
- 1
roles/blog/tasks/blog.yml 查看文件

@@ -5,7 +5,7 @@
5 5
   command: mv /etc/apache2/sites-available/{{ domain }} /etc/apache2/sites-available/{{ domain }}.conf removes=/etc/apache2/sites-available/{{ domain }}
6 6
 
7 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 10
 - name: Configure the Apache HTTP server for the blog
11 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 查看文件

@@ -38,7 +38,7 @@
38 38
   command: mv /etc/apache2/sites-available/cgit /etc/apache2/sites-available/cgit.conf removes=/etc/apache2/sites-available/cgit
39 39
 
40 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 43
 - name: Configure the Apache HTTP server for cgit
44 44
   template: src=etc_apache2_sites-available_cgit.j2

+ 1
- 1
roles/news/tasks/selfoss.yml 查看文件

@@ -52,7 +52,7 @@
52 52
   command: mv /etc/apache2/sites-available/selfoss /etc/apache2/sites-available/selfoss.conf removes=/etc/apache2/sites-available/selfoss
53 53
 
54 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 57
 - name: Configure the Apache HTTP server for selfoss
58 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 查看文件

@@ -96,7 +96,7 @@
96 96
   command: mv /etc/apache2/sites-available/owncloud /etc/apache2/sites-available/owncloud.conf removes=/etc/apache2/sites-available/owncloud
97 97
 
98 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 101
 - name: Configure the Apache HTTP server for ownCloud
102 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 查看文件

@@ -81,7 +81,7 @@
81 81
   command: mv /etc/apache2/sites-available/wallabag /etc/apache2/sites-available/wallabag.conf removes=/etc/apache2/sites-available/wallabag
82 82
 
83 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 86
 - name: Configure the Apache HTTP server for wallabag
87 87
   template: src=etc_apache2_sites-available_wallabag.j2

+ 1
- 1
roles/webmail/tasks/roundcube.yml 查看文件

@@ -65,7 +65,7 @@
65 65
   command: mv /etc/apache2/sites-available/roundcube /etc/apache2/sites-available/roundcube.conf removes=/etc/apache2/sites-available/roundcube
66 66
 
67 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 70
 - name: Configure the Apache HTTP server for roundcube
71 71
   template: src=etc_apache2_sites-available_roundcube.j2 dest=/etc/apache2/sites-available/roundcube.conf group=root owner=root force=yes

正在加载...
取消
保存