Skip to content

Conversation

@retlehs
Copy link
Member

@retlehs retlehs commented Oct 22, 2025

@retlehs retlehs requested a review from swalkinshaw October 22, 2025 16:33
@retlehs retlehs self-assigned this Oct 22, 2025
project: "{{ wordpress_sites[site] }}"
project_root: "{{ www_root }}/{{ site }}"
project_local_path: "{{ (lookup('env', 'USER') == 'vagrant') | ternary(project_root + '/' + project_current_path, project.local_path) }}"
project_local_path: "{{ (lookup('env', 'USER') == 'web') | ternary(project_root + '/' + project_current_path, project.local_path) }}"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will this work with Lima? Assuming (lookup('env', 'USER') == 'web') is false (which it was before too), it will use project.local_path.

This should be the local macOS user right?

- name: "WordPress Server: Install LEMP Stack with PHP and MariaDB MySQL"
hosts: web:&development
become: yes
remote_user: vagrant
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 Lima sets this via the generated inventory file as ansible_user I think (to local macOS user).

@retlehs retlehs merged commit 9eea90d into master Oct 23, 2025
2 checks passed
@retlehs retlehs deleted the drop-vagrant branch October 23, 2025 01:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants