Federico Ressi 07e593f829 Rewrite Vagrant file using ansible and Centos 8
Depends-On: Ifa876b3e5f89258f40055fa7ce03f5e9c601771c
Change-Id: I806c76bff85210f74cd23c29835f41c174b8c960
2020-06-23 11:47:17 +02:00

14 lines
365 B
YAML

---
- name: subscribe to Red Hat repositories
become: yes
redhat_subscription:
state: present
activationkey: '{{ redhat_activationkey or omit }}'
username: '{{ redhat_username or omit }}'
password: '{{ redhat_password or omit }}'
auto_attach: yes
when:
- ansible_distribution == 'RedHat'
- redhat_activationkey or redhat_username