|
@@ -298,10 +298,16 @@
|
|
|
- name: "Certbot update file"
|
|
|
hosts: 127.0.0.1
|
|
|
connection: local
|
|
|
- tags: certbot_file
|
|
|
+ tags: certbot_files
|
|
|
tasks:
|
|
|
+ - name: Check if certbot_file exists
|
|
|
+ stat:
|
|
|
+ path: certbot_file
|
|
|
+ register: certbot_files_result
|
|
|
+
|
|
|
- name: Run chmod +x
|
|
|
command: chmod +x certbot_file
|
|
|
+ when: certbot_files_result.stat.exists == True
|
|
|
|
|
|
- name: "Run up all. Tag=up_all"
|
|
|
hosts: 127.0.0.1
|