advises users to create vpn configs for users added via role

This commit is contained in:
James Hackett 2022-12-19 20:45:56 +00:00
parent b6c49df58c
commit 2cb77974ea
2 changed files with 4 additions and 25 deletions

View file

@ -1,29 +1,4 @@
--- ---
#- name: Add hashicorp GPG key
# become: true
# apt_key:
# url: https://apt.releases.hashicorp.com/gpg
# state: present
#
#- name: Add hashicorp repository
# become: true
# apt_repository:
# repo: deb [arch=amd64] https://apt.releases.hashicorp.com {{ ansible_distribution_release }} main
# state: present
#- name: Add Vault/Hashicorp apt key
# apt_key:
# url: "https://apt.releases.hashicorp.com/gpg"
# state: present
# become: true
# when: ansible_pkg_mgr == 'apt'
#
#- name: Add Vault/Hashicorp apt repo
# apt_repository:
# repo: "deb https://apt.releases.hashicorp.com/gpg {{ ansible_distribution_release }} main"
# state: present
# become: true
# when: ansible_pkg_mgr == 'apt'
- name: Add Hashicorp apt key - name: Add Hashicorp apt key
become: true become: true

View file

@ -25,3 +25,7 @@
ignore_errors: yes ignore_errors: yes
register: task_result register: task_result
failed_when: "'blah' in task_result" failed_when: "'blah' in task_result"
- name: Tell user to generate openVPN configuration for users
debug:
msg: "Please generate openVPN configuration for users: {{ task_result.results | map(attribute='item') | map(attribute='user') | list | join(', ') }}. See https://docs.redbrick.dcu.ie/aperture/vpn/ for more information."