Skip to content
Merged
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
16 changes: 8 additions & 8 deletions provisioning/roles/common/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,14 @@
when: has_vagrant.stdout
sudo: yes

- name: Create deploy user
user: name=deploy append=yes groups=www-data shell=/bin/bash comment="Created by Genesis WordPress"
sudo: yes

- name: Grant sudo access to deploy user
copy: content="%deploy ALL=(ALL) NOPASSWD:ALL" dest=/etc/sudoers.d/deploy mode=0440 force=no
sudo: yes

- name: Add www-data user to deploy
user: name=www-data append=yes groups=deploy
sudo: yes
Expand Down Expand Up @@ -69,11 +77,3 @@
- name: Update my.conf's bind-address
lineinfile: dest=/etc/mysql/my.cnf backup=yes regexp=^bind-address line='bind-address = 0.0.0.0'
sudo: yes

- name: Create deploy user
user: name=deploy append=yes groups=www-data shell=/bin/bash comment="Created by Genesis WordPress"
sudo: yes

- name: Grant sudo access to deploy user
copy: content="%deploy ALL=(ALL) NOPASSWD:ALL" dest=/etc/sudoers.d/deploy mode=0440 force=no
sudo: yes