Split userlogon and ansible role tasks, switch apt packages to python3

This commit is contained in:
Salt 2019-09-15 01:38:16 -05:00
parent cb3d94db94
commit 1d3369fcb0
2 changed files with 7 additions and 5 deletions

View File

@ -4,7 +4,9 @@
- hosts: ec2 - hosts: ec2
roles: roles:
- common - common
- hosts: tag_role_ansiblehost - hosts: tag_userlogon_true
roles: roles:
- user - user
- hosts: tag_ansiblehost_true
roles:
- ansiblehost - ansiblehost

View File

@ -6,10 +6,10 @@
name: "{{ packages }}" name: "{{ packages }}"
vars: vars:
packages: packages:
- python-pip - python3-pip
- python-boto - python3-boto
- python-boto3 - python3-boto3
- python-botocore - python3-botocore
become: true become: true
- name: Install Ansible-required packages via pip - name: Install Ansible-required packages via pip
pip: pip: