Files
dc-deployments-automation/roles/linux_common/tasks/main.yml

45 lines
1.1 KiB
YAML

---
# 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"
- name: Install common support packages
package:
name:
- jq
- tar
- curl
- unzip
- fontconfig
- python-psycopg2
- name: Create product group
group:
name: "{{ atl_product_user }}"
gid: "{{ atl_product_user_uid }}"
- name: Create product user
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:
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
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