mirror of
https://bitbucket.org/atlassian/dc-deployments-automation.git
synced 2025-12-14 08:53:07 -06:00
use collections; use FQCN for all tasks
This commit is contained in:
@@ -1,16 +1,18 @@
|
||||
---
|
||||
|
||||
- name: Install Amazon-Linux-specific support packages
|
||||
yum:
|
||||
ansible.builtin.yum:
|
||||
name:
|
||||
- dejavu-sans-fonts
|
||||
- file
|
||||
- git-{{ git_version }}
|
||||
- libxml2
|
||||
- shadow-utils
|
||||
vars:
|
||||
ansible_python_interpreter: /usr/bin/python2
|
||||
|
||||
- name: Limit the SSH ciphers
|
||||
lineinfile:
|
||||
ansible.builtin.lineinfile:
|
||||
path: "/etc/ssh/sshd_config"
|
||||
# Drop insecure ciphers, currently 3des-cbc only. You can get the
|
||||
# full list with `sshd -T | grep -i ciphers`
|
||||
|
||||
@@ -3,10 +3,10 @@
|
||||
# Note: Try and limit these to packages that are distro-specific, and
|
||||
# place commonly-named ones below.
|
||||
- name: Install distro-specific prerequisites
|
||||
include_tasks: "{{ ansible_distribution|lower }}.yml"
|
||||
ansible.builtin.include_tasks: "{{ ansible_distribution|lower }}.yml"
|
||||
|
||||
- name: Install common support packages
|
||||
package:
|
||||
ansible.builtin.package:
|
||||
name:
|
||||
- jq
|
||||
- tar
|
||||
@@ -16,19 +16,19 @@
|
||||
- python-psycopg2
|
||||
|
||||
- name: Create product group
|
||||
group:
|
||||
ansible.builtin.group:
|
||||
name: "{{ atl_product_user }}"
|
||||
gid: "{{ atl_product_user_uid }}"
|
||||
|
||||
- name: Create product user
|
||||
user:
|
||||
ansible.builtin.user:
|
||||
name: "{{ atl_product_user }}"
|
||||
uid: "{{ atl_product_user_uid }}"
|
||||
group: "{{ atl_product_user }}"
|
||||
comment: "Product runtime user"
|
||||
|
||||
- name: Stop systemd-cleanup deleting the jvm socket file
|
||||
copy:
|
||||
ansible.builtin.copy:
|
||||
src: java.conf
|
||||
dest: "/usr/lib/tmpfiles.d/java.conf"
|
||||
owner: root
|
||||
@@ -37,7 +37,7 @@
|
||||
register: systemd_config_changed
|
||||
|
||||
- name: Force systemd to reload daemon configuration
|
||||
systemd:
|
||||
ansible.builtin.systemd:
|
||||
daemon_reload: yes
|
||||
when:
|
||||
- systemd_config_changed is defined
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
---
|
||||
|
||||
- name: Install common Ubuntu support packages
|
||||
apt:
|
||||
ansible.builtin.apt:
|
||||
name:
|
||||
- python3-psycopg2
|
||||
- libxml2-utils
|
||||
|
||||
Reference in New Issue
Block a user