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

Added package tag #1459

Open
wants to merge 1 commit into
base: 7.1.x
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
11 changes: 9 additions & 2 deletions playbooks/tasks/certificate_authority.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@
ansible_become: "{{ ansible_become_localhost }}"

- name: Apt update
tags:
- certificate_authority
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this task is not related to certificate. Package tag looks okay

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the tasks that have certificate_authority tag in them are mostly using openssl. So if those tasks need to be run separately using --tags certificate_authority then running this task previous to them would ensure when they are run they dont give the error command openssl not found.

- package
apt:
name: "{{item}}"
state: present
Expand Down Expand Up @@ -69,7 +72,9 @@
- '!all'

- name: Install OpenSSL and Rsync - RedHat
tags: certificate_authority
tags:
- certificate_authority
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same as above.

- package
yum:
name:
- openssl
Expand All @@ -78,7 +83,9 @@
when: ansible_os_family == "RedHat"

- name: Install OpenSSL and Rsync - Debian
tags: certificate_authority
tags:
- certificate_authority
- package
apt:
name:
- openssl
Expand Down