feat: no create usr in the role

This commit is contained in:
Adrien Waksberg 2018-08-15 09:30:18 +02:00
parent b3fd17bdf8
commit 1735ff1ffd
4 changed files with 6 additions and 28 deletions
test/integration/phpfpm

View file

@ -5,12 +5,15 @@
- name: website1
user: www
home: /opt/www
uid: 1001
- name: website2
user: website2
user: www
home: /opt/website2
pm: static
pm_max_children: 4
pre_tasks:
- user:
name: www
roles:
- ansible-role-phpfpm

View file

@ -19,12 +19,6 @@ puts '================================'
end
end
describe user('www') do
it { should exist }
it { should have_uid 1001 }
it { should belong_to_group 'www-data' }
end
describe file('/etc/logrotate.d/php7.0-fpm') do
it { should be_file }
it { should be_mode 644 }