mirror of
https://github.com/geerlingguy/ansible-role-certbot.git
synced 2025-04-19 17:01:37 +02:00
handling of pip3 on CentOS 8
This commit is contained in:
parent
33dfd1fbc1
commit
fd89fc6137
@ -10,7 +10,7 @@ env:
|
||||
- MOLECULE_DISTRO: centos8
|
||||
MOLECULE_PLAYBOOK: playbook-plugin-install.yml
|
||||
- MOLECULE_DISTRO: centos8
|
||||
MOLECULE_PLAYBOOK: playbook-pip-install.yml
|
||||
MOLECULE_PLAYBOOK: playbook-pip3-install.yml
|
||||
- MOLECULE_DISTRO: centos7
|
||||
- MOLECULE_DISTRO: centos7
|
||||
MOLECULE_PLAYBOOK: playbook-plugin-install.yml
|
||||
|
33
molecule/default/playbook-pip3-install.yml
Normal file
33
molecule/default/playbook-pip3-install.yml
Normal file
@ -0,0 +1,33 @@
|
||||
---
|
||||
- name: Converge
|
||||
hosts: all
|
||||
become: true
|
||||
|
||||
vars:
|
||||
certbot_auto_renew_user: root
|
||||
|
||||
pre_tasks:
|
||||
- name: Update apt cache.
|
||||
apt: update_cache=yes cache_valid_time=600
|
||||
when: ansible_os_family == 'Debian'
|
||||
changed_when: false
|
||||
|
||||
- name: Install dependencies (RedHat).
|
||||
yum: name={{ item }} state=present
|
||||
with_items:
|
||||
- cronie
|
||||
- epel-release
|
||||
when: ansible_os_family == 'RedHat'
|
||||
|
||||
- name: Install cron (Debian).
|
||||
apt: name=cron state=present
|
||||
when: ansible_os_family == 'Debian'
|
||||
|
||||
roles:
|
||||
- role: geerlingguy.pip
|
||||
pip_package: python3-pip
|
||||
pip_executable: pip3
|
||||
- role: geerlingguy.certbot
|
||||
certbot_install_from_source: false
|
||||
certbot_pkg_mgr: pip3
|
||||
certbot_plugins: ['dns-route53']
|
Loading…
x
Reference in New Issue
Block a user