Changeset - e0c1f4e07f07
[Not reviewed]
0 2 0
Branko Majic (branko) - 8 years ago 2016-06-18 14:58:35
branko@majic.rs
Noticket: Fix ownership for some files deployed by the phpinfo and wsgihello roles.
2 files changed with 4 insertions and 4 deletions:
0 comments (0 inline, 0 general)
testsite/playbooks/roles/phpinfo/tasks/main.yml
Show inline comments
 
@@ -2,8 +2,8 @@
 

	
 
- name: Create directory for hosting the application
 
  file: dest="/var/www/phpinfo.{{ testsite_domain }}/htdocs/" state=directory
 
        owner="admin" group="web-phpinfo_{{ testsite_domain_underscores }}" mode=2750
 
        owner="admin-phpinfo_{{ testsite_domain_underscores }}" group="web-phpinfo_{{ testsite_domain_underscores }}" mode=2750
 

	
 
- name: Deploy the index.php
 
  copy: src="index.php" dest="/var/www/phpinfo.{{ testsite_domain }}/htdocs/index.php"
 
        owner="admin" group="web-phpinfo_{{ testsite_domain_underscores }}" mode=640
 
        owner="admin-phpinfo_{{ testsite_domain_underscores }}" group="web-phpinfo_{{ testsite_domain_underscores }}" mode=640
testsite/playbooks/roles/wsgihello/tasks/main.yml
Show inline comments
 
@@ -2,10 +2,10 @@
 

	
 
- name: Create directroy for storing code
 
  file: dest="/var/www/wsgi.{{ testsite_domain }}/code/" state=directory
 
        owner="admin" group="web-wsgi_{{ testsite_domain_underscores }}" mode=2750
 
        owner="admin-wsgi_{{ testsite_domain_underscores }}" group="web-wsgi_{{ testsite_domain_underscores }}" mode=2750
 

	
 
- name: Deploy WSGI application
 
  copy: src="hello.wsgi" dest="/var/www/wsgi.{{ testsite_domain }}/code/wsgi.py"
 
        owner="admin" group="web-wsgi_{{ testsite_domain_underscores }}" mode=640
 
        owner="admin-wsgi_{{ testsite_domain_underscores }}" group="web-wsgi_{{ testsite_domain_underscores }}" mode=640
 
  notify:
 
    - Restart website wsgi.{{ testsite_domain }}
 
\ No newline at end of file
0 comments (0 inline, 0 general)