Skip to content

Commit

Permalink
Remove playbook vars in favor of role defaults.
Browse files Browse the repository at this point in the history
  • Loading branch information
jonpugh committed Apr 24, 2024
1 parent a3509ce commit 3a104b6
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 15 deletions.
12 changes: 0 additions & 12 deletions playbook.vars.yml

This file was deleted.

7 changes: 4 additions & 3 deletions playbook.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,22 @@
---
- name: Configure Server
hosts: all
vars_files: playbook.vars.yml
become: true

roles:
- role: geerlingguy.security
tags: system
vars:
security_sudoers_passwordless: "{{ ['control'] + operations_admin_users }}"
security_sudoers_passwordless: "{{ [operations_control_user] + operations_admin_users }}"
security_ssh_allowed_users: "{{ operations_admin_users }}"

- role: geerlingguy.github-users
tags: system
vars:
github_users: "{{ operations_admin_users }}"

- name: "Configure Hosting: DDEV"
hosts: operations_host_ddev
vars_files: playbook.vars.yml

roles:
- role: geerlingguy.php
Expand Down
7 changes: 7 additions & 0 deletions roles/operations.users/defaults/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
operations_admin_users: []

operations_control_user: control
operations_control_home: /var/control

operations_platform_user: platform
operations_platform_home: /var/platform

0 comments on commit 3a104b6

Please sign in to comment.