Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use ansible_user_dir in customize_home role #1760

Merged
merged 4 commits into from
Feb 29, 2024
Merged
Show file tree
Hide file tree
Changes from 2 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
1 change: 0 additions & 1 deletion playbooks/katello_devel.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
---
- hosts: all
become: true
roles:
- katello_devel
4 changes: 2 additions & 2 deletions roles/customize_home/tasks/fix_env.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
- name: Check that the .env exists
stat:
path: /home/vagrant/foreman/.env
path: "{{ ansible_user_dir }}/foreman/.env"
register: stat_result

- name: Ensure .env file contains current hostname
ansible.builtin.replace:
path: /home/vagrant/foreman/.env
path: "{{ ansible_user_dir }}/foreman/.env"
regexp: '(.*)--public [a-zA-Z0-9-\.]*(.*)'
replace: '\1--public {{ ansible_fqdn }}\2'
when: stat_result
3 changes: 3 additions & 0 deletions roles/katello_devel/meta/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
dependencies:
- role: etc_hosts
wbclark marked this conversation as resolved.
Show resolved Hide resolved
- role: foreman_server_repositories
become: true
foreman_server_repositories_katello: true
foreman_server_repositories_foreman_client: true
# puppet 6 is still the default for theforeman.operations.puppet_repositories as of release 1.2.3
Expand All @@ -13,7 +14,9 @@ dependencies:
- role: postgresql_scl
when: ansible_distribution_major_version == "7"
- role: foreman_installer_devel_scenario
become: true
- role: foreman_installer
become: true
foreman_installer_scenario: katello-devel
foreman_installer_additional_packages:
- foreman-installer-katello
Expand Down
Loading