become: true
when: ansible_distribution == 'Ubuntu'
- - name: Install python-tox and deps
- pip:
- name:
- - tox
- - tox-pyenv
- state: present
- become: true
-
- name: Install Python 3.6 and packages
apt:
name:
become: true
when: ansible_distribution == 'Ubuntu'
+ - name: Install enchant2 package for Ubuntu
+ apt:
+ name:
+ - enchant-2
+ update_cache: yes
+ state: present
+ become: true
+ when: ansible_distribution == 'Ubuntu'
+ - name: Install enchant2 package for CentOS
+ dnf:
+ name:
+ - enchant2
+ update_cache: yes
+ state: present
+ become: true
+ when: ansible_distribution == 'CentOS'