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

Modified the database migration command #156

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
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
3 changes: 2 additions & 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 @@ -65,7 +65,7 @@
when: maas_ha_postgres_enabled|bool

- name: Migrate MAAS database
ansible.builtin.command: "{{ 'maas' if maas_installation_type | lower == 'snap' else 'maas-region' }} migrate"
ansible.builtin.command: "{{ 'maas' if maas_installation_type | lower == 'snap' else 'maas-region' }} dbupgrade"
changed_when: false
register: pg_migrate
until: pg_migrate is not failed
Expand Down Expand Up @@ -133,3 +133,4 @@
path: "{{ maas_installmetric_file }}"
state: touch
mode: 0644

Check failure on line 136 in roles/maas_region_controller/tasks/install_maas.yaml

View workflow job for this annotation

GitHub Actions / build

yaml[empty-lines]

Too many blank lines (1 > 0)
Loading