-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #421 from pneerincx/fix/deps
Fix/deps
- Loading branch information
Showing
3 changed files
with
23 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../galaxy-requirements.yml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,29 @@ | ||
--- | ||
- name: 'Sanity checks before we start.' | ||
hosts: | ||
- jumphost | ||
- repo | ||
- cluster | ||
- docs | ||
hosts: all | ||
any_errors_fatal: true | ||
gather_facts: false | ||
become: false | ||
vars: | ||
# | ||
# Disable Ansible's interpretor detection logic, | ||
# which would fail to use the interpretor from an activated virtual environment. | ||
# | ||
- ansible_python_interpreter: python | ||
pre_tasks: | ||
- name: 'Verify Ansible version meets requirements.' | ||
assert: | ||
that: "ansible_version.full is version_compare(minimal_ansible_version, '>=')" | ||
msg: "You must update Ansible to at least {{ minimal_ansible_version }}.x to use this playbook." | ||
vars: | ||
minimal_ansible_version: 2.10 | ||
run_once: true | ||
delegate_to: localhost | ||
- name: 'Download dependencies from Ansible Galaxy on the Ansible control host.' | ||
ansible.builtin.command: | ||
cmd: ansible-galaxy install -r galaxy-requirements.yml | ||
run_once: true | ||
delegate_to: localhost | ||
changed_when: "'installed successfully' in resolved_dependencies.stdout" | ||
register: resolved_dependencies | ||
... |