Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
5 changes: 1 addition & 4 deletions src/playbooks/deploy/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,4 @@
- httpd
- pulp
- foreman
post_tasks:
- name: Admin credentials
ansible.builtin.debug:
msg: "Admin credentials: {{ foreman_initial_admin_username }}:{{ foreman_initial_admin_password }}"
- post_install
1 change: 1 addition & 0 deletions src/roles/post_install/defaults/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
post_install_done_flag: "{{ obsah_state_path }}/.installed"
15 changes: 15 additions & 0 deletions src/roles/post_install/tasks/main.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
---
- name: Admin credentials
ansible.builtin.debug:
msg:
- "{{ _post_install_url_msg }}"
- "{{ _post_install_cred_msg if (post_install_done_flag is not exists) else '' }}"
vars:
_post_install_url_msg: "Foreman is running at https://{{ ansible_fqdn }}"
Copy link
Member

Choose a reason for hiding this comment

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

#118 introduces a foreman_url variable. Not a blocker to this, just relating them.

Copy link
Member Author

Choose a reason for hiding this comment

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

I can pull that part out of #118 here, makes sense!

_post_install_cred_msg: "Admin credentials: {{ foreman_initial_admin_username }}:{{ foreman_initial_admin_password }}"
- name: Mark installation as complete
ansible.builtin.copy:
dest: "{{ post_install_done_flag }}"
content: ''
mode: '0640'
delegate_to: localhost
Loading