Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions playbook.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@
- name: Create website root
file: path=/srv/website state=directory

- name: Set hello.txt owner/group to www-data
file: path=/srv/website/hello.txt owner=www-data group=www-data

- name: Add a nice page
copy: content="Hello world" dest=/srv/website/hello.txt

Expand Down
4 changes: 2 additions & 2 deletions test_nginx.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ def test_website_root(File):
f = File("/srv/website/hello.txt")
assert f.exists
assert f.content == "Hello world"
assert f.user == "root"
assert f.group == "root"
assert f.user == "www-data"
assert f.group == "www-data"
assert f.mode == 644


Expand Down