feat: no create usr in the role
This commit is contained in:
parent
b3fd17bdf8
commit
1735ff1ffd
4 changed files with 6 additions and 28 deletions
test/integration/phpfpm
|
@ -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
|
||||
|
|
|
@ -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 }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue