hotfix: use auto python interpreter for package tasks, virtualenv for all other tasks

This commit is contained in:
Ben Partridge
2020-11-03 11:51:52 +11:00
parent 73bd0f407a
commit 229bbf01f6
13 changed files with 51 additions and 34 deletions

View File

@@ -8,6 +8,7 @@
- awscli
- git
- ec2-utils
ansible_python_interpreter: auto
- name: Install CloudWatch Agent
yum:
@@ -16,3 +17,4 @@
when: atl_aws_enable_cloudwatch is defined and atl_aws_enable_cloudwatch
notify:
- Enable CloudWatch Agent
ansible_python_interpreter: auto

View File

@@ -4,6 +4,7 @@
yum:
name:
- "google-noto-*"
ansible_python_interpreter: auto
- name: Link the language fonts into the JDK
# Not idiomatic, but cleaner than messing with nested lookups...

View File

@@ -8,10 +8,12 @@
description: Atlassian Slingshot
baseurl: "{{ atl_slingshot_yum_repo_url }}"
gpgcheck: no
ansible_python_interpreter: auto
- name: Install atlassian-slingshot
yum:
name: atlassian-slingshot
ansible_python_interpreter: auto
- name: Enable Postgresql from 'extras'
command: amazon-linux-extras install -y "postgresql{{ atl_amazon_extras_postgresql_version }}"

View File

@@ -27,6 +27,7 @@
- name: Install git
package:
name: git
ansible_python_interpreter: auto
roles:
- role: diy_backup

View File

@@ -7,3 +7,4 @@
- libxml2
- git-{{ git_version }}
- dejavu-sans-fonts
ansible_python_interpreter: auto

View File

@@ -14,6 +14,7 @@
- unzip
- fontconfig
- python-psycopg2
ansible_python_interpreter: auto
- name: Create product group
group:

View File

@@ -4,3 +4,4 @@
yum:
name:
- nfs-utils
ansible_python_interpreter: auto

View File

@@ -12,11 +12,13 @@
gpgkey: https://adoptopenjdk.jfrog.io/adoptopenjdk/api/gpg/key/public
gpgcheck: yes
state: present
ansible_python_interpreter: auto
- name: Install AdoptOpenJDK
yum:
name: "adoptopenjdk-{{ java_major_version }}-hotspot"
state: present
ansible_python_interpreter: auto
- name: Ensure common JDK symlink exists
alternatives:
@@ -33,3 +35,4 @@
yum:
name:
- dejavu-fonts-common # Required by the installer
ansible_python_interpreter: auto

View File

@@ -28,6 +28,7 @@
name:
- tar
- shadow-utils
ansible_python_interpreter: auto
- name: "{{ test_pre_step_prefix }} Create application group"
group:

View File

@@ -25,11 +25,13 @@
package:
state: present
name: tar
ansible_python_interpreter: auto
- name: "{{ test_pre_step_prefix }} Install useradd and groupadd binaries"
package:
state: present
name: shadow-utils
ansible_python_interpreter: auto
- name: "{{ test_pre_step_prefix }} Create application group"
group: