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

"cryptsetup" tool uses early then it is installed #32

Closed
mvk15 opened this issue Oct 3, 2020 · 1 comment
Closed

"cryptsetup" tool uses early then it is installed #32

mvk15 opened this issue Oct 3, 2020 · 1 comment

Comments

@mvk15
Copy link
Collaborator

mvk15 commented Oct 3, 2020

The first Ansible task in the file encryption.yml uses the command cryptsetup --version before it will be installed in the 3rd task:

---

- name: fetch cryptsetup version  <==========================
  command: "cryptsetup --version"
  changed_when: no
  register: _cryptsetup_version

- name: register version
  set_fact:
    cryptsetup_version: "{{ _cryptsetup_version.stdout[11:] }}"

- block:
  - name: install dependencies  <============================
    apt:
      name: "{{ dependencies.encryption }}"
      state: latest
      update_cache: no # skip cache check since we already ran apt
@mvk15 mvk15 changed the title cryptsetup tool uses early then it is installed "cryptsetup" tool uses early then it is installed Oct 3, 2020
nilsmeyer pushed a commit that referenced this issue Oct 4, 2020
…lated packages before tasks where they start to use (#33)
@nilsmeyer
Copy link
Owner

Thank you for fixing this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants