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

Logic change around ssh key import for deb installs #147

Merged
Merged
Changes from all 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
2 changes: 1 addition & 1 deletion roles/maas_region_controller/tasks/install_maas.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
repo: "ppa:maas/{{ maas_version }}"
when: maas_installation_type | lower == 'deb'

- name: Install Chrony

Check warning on line 17 in roles/maas_region_controller/tasks/install_maas.yaml

View workflow job for this annotation

GitHub Actions / build

args[module]

value of state must be one of: absent, build-dep, fixed, latest, present, got: {{ maas_deb_state | default('present') }}
ansible.builtin.apt:
name: "chrony"
state: "{{ maas_deb_state | default('present') }}"
Expand Down Expand Up @@ -79,12 +79,12 @@
command: >
maas init --rbac-url={{ maas_rbac_url | default('') | quote }}
--candid-agent-file={{ maas_candid_auth_file | default('') | quote }}
--admin-ssh-import={{ admin_id if admin_id is defined else '' }}
responses:
"(?i)Username: ": "{{ admin_username }}"
"(?i)Password: ": "{{ admin_password }}"
"(?i)Again: ": "{{ admin_password }}"
"(?i)Email: ": "{{ admin_email }}"
"(?i)Import SSH keys ": "{{ admin_id if admin_id is defined else '' }}"
when: maas_installation_type | lower == 'deb' and maas_region_new_installation is defined

- name: Starting MAAS region service
Expand Down
Loading