Skip to content

Commit

Permalink
Merge pull request #421 from pneerincx/fix/deps
Browse files Browse the repository at this point in the history
Fix/deps
  • Loading branch information
erijpkema authored Jun 28, 2021
2 parents 1f8b582 + dc00c7e commit ee62572
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 6 deletions.
2 changes: 1 addition & 1 deletion roles/pulp_server/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@
- name: "Initialize {{ repo_management_user }} account creating home dir if it did not exist yet."
command:
cmd: "mkhomedir_helper {{ repo_management_user }} 0077"
creates: "/home/{{ repo_management_user }}"
creates: "/admin/{{ repo_management_user }}"
become: true

- name: "Allow passwordless sudo to the {{ repo_management_user }} account for Pulp admin users."
Expand Down
1 change: 1 addition & 0 deletions single_group_playbooks/galaxy-requirements.yml
26 changes: 21 additions & 5 deletions single_group_playbooks/pre_deploy_checks.yml
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
...

0 comments on commit ee62572

Please sign in to comment.