mirror of
https://bitbucket.org/atlassian/dc-deployments-automation.git
synced 2025-12-13 00:13:09 -06:00
51 lines
1.6 KiB
YAML
51 lines
1.6 KiB
YAML
---
|
|
|
|
# Note: Try and limit these to packages that are distro-specific, and
|
|
# place commonly-named ones below.
|
|
- name: Install Amazon-Linux-specific prerequisites
|
|
ansible.builtin.include_tasks: "{{ ansible_distribution | lower }}-{{ ansible_distribution_version }}.yml"
|
|
when: ansible_distribution | lower == 'amazon'
|
|
|
|
- name: Install Ubuntu/Debian-specific prerequisites
|
|
ansible.builtin.include_tasks: "{{ ansible_distribution | lower }}.yml"
|
|
when: ansible_distribution | lower != 'amazon'
|
|
|
|
- name: Install common support packages
|
|
ansible.builtin.package:
|
|
name:
|
|
- jq
|
|
- tar
|
|
- curl
|
|
- unzip
|
|
- fontconfig
|
|
vars:
|
|
ansible_python_interpreter: "{{ '/usr/bin/python2' if ((ansible_distribution | lower == 'amazon') and (ansible_distribution_version == '2')) else omit }}"
|
|
|
|
- name: Create product group
|
|
ansible.builtin.group:
|
|
name: "{{ atl_product_user }}"
|
|
gid: "{{ atl_product_user_uid }}"
|
|
|
|
- name: Create product 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
|
|
ansible.builtin.copy:
|
|
src: java.conf
|
|
dest: "/usr/lib/tmpfiles.d/java.conf"
|
|
owner: root
|
|
group: root
|
|
mode: "644"
|
|
register: systemd_config_changed
|
|
|
|
- name: Force systemd to reload daemon configuration
|
|
ansible.builtin.systemd:
|
|
daemon_reload: yes
|
|
when:
|
|
- systemd_config_changed is defined
|
|
- molecule_yml is not defined # molecule cannot run systemctl commands and notest doesn't work for handlers
|