Skip to content

Commit

Permalink
Add post install instructions
Browse files Browse the repository at this point in the history
we need to disable the restriction of ssh to pulsys
  • Loading branch information
kayiwa committed Oct 9, 2024
1 parent a07a655 commit eb54e71
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions playbooks/Gitlab.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@
hosts: gitlab_{{ runtime_env | default('staging') }}
remote_user: pulsys
become: true
vars:
- post_install: |
Things left to do:
- comment out `AllowUsers pulsys` as `/etc/ssh/sshd_config`
- Restart the openssh-server `sudo systemctl restart sshd`
vars_files:
- ../group_vars/gitlab/{{ runtime_env | default('staging') }}.yml
- ../group_vars/gitlab/vault.yml
Expand All @@ -18,3 +23,7 @@
token: "{{ vault_pul_slack_token }}"
msg: "Ansible ran `{{ ansible_play_name }}` on {{ inventory_hostname }}"
channel: "{{ slack_alerts_channel }}"

- name: Post role reminders
ansible.builtin.debug:
msg: "{{ post_install.split('\n') }}"

0 comments on commit eb54e71

Please sign in to comment.