Browse Source

* external become_user set for execute nodejs version manager install for possible launch that playbook without become_user interactions (if setting user on execute ansible starter script)

master
dimti 8 months ago
parent
commit
b7b67f1c86
  1. 2
      playbooks/nginx-site.yml
  2. 2
      playbooks/nginx-without-db-site.yml
  3. 2
      playbooks/own/node-version-manager.yml

2
playbooks/nginx-site.yml

@ -9,6 +9,8 @@
- import_playbook: debops/redis.yml
- import_playbook: own/var-www-set-ownerships.yml
- import_playbook: own/node-version-manager.yml
become: true
become_user: '{{ site_name }}'
- import_playbook: own/nginx-auth.yml
- import_playbook: own/phpmyadmin.yml
- import_playbook: own/phpmyadmin-nginx-auth.yml

2
playbooks/nginx-without-db-site.yml

@ -7,6 +7,8 @@
- import_playbook: debops/redis.yml
- import_playbook: own/var-www-set-ownerships.yml
- import_playbook: own/node-version-manager.yml
become: true
become_user: '{{ site_name }}'
- import_playbook: own/nginx-auth.yml
- import_playbook: own/correct-paths-for-pct-enter.yml

2
playbooks/own/node-version-manager.yml

@ -4,6 +4,4 @@
hosts: [ 'debian10' ]
tasks:
- name: Install nvm
become: true
become_user: '{{ site_name }}'
shell: 'wget -qO- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.5/install.sh | bash'
Loading…
Cancel
Save