aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoralex <alex@pdp7.net>2023-10-14 18:05:26 +0200
committeralex <alex@pdp7.net>2023-10-14 18:06:31 +0200
commitda338069201d5894707019dc66844409d0fe3935 (patch)
tree83eb601fa4598ddc8c6a13f954c6f725fb6f96b6
parenta79b1b78a565a7b4d12297fc7814b9804c894fea (diff)
Install CRB dependency config-manager
-rw-r--r--personal_infra/playbooks/roles/apply_puppet/tasks/main.yml3
1 files changed, 3 insertions, 0 deletions
diff --git a/personal_infra/playbooks/roles/apply_puppet/tasks/main.yml b/personal_infra/playbooks/roles/apply_puppet/tasks/main.yml
index 6447daf9..e2fe903f 100644
--- a/personal_infra/playbooks/roles/apply_puppet/tasks/main.yml
+++ b/personal_infra/playbooks/roles/apply_puppet/tasks/main.yml
@@ -36,6 +36,9 @@
dest: "{{ inventory_dir }}/build/puppet/host_vars/{{ inventory_hostname }}/this.json"
content: "{{ hostvars[inventory_hostname] }}"
tags: puppet_fast
+- name: install config manager
+ command: dnf install -y 'dnf-command(config-manager)'
+ when: ansible_distribution_file_variety == 'RedHat' and ansible_distribution_major_version == '9'
- name: enable crb
command: dnf config-manager --set-enabled crb
when: ansible_distribution_file_variety == 'RedHat' and ansible_distribution_major_version == '9'