Modified crowd

This commit is contained in:
Azra Sulthana
2019-07-17 14:38:36 +05:30
parent 2c25fb2020
commit 25090db8cf
4 changed files with 9 additions and 6 deletions

View File

@@ -7,8 +7,9 @@
ec2_metadata_facts:
tags:
- notest
ignore_errors: yes
- name: Use EC2 instance ID for cluster node ID
set_fact:
atl_cluster_node_id: "{{ ansible_ec2_instance_id }}"
atl_cluster_node_id: "{{ ansible_ec2_instance_id | default(ansible_fqdn) }}"
atl_local_ipv4: "{{ ansible_ec2_local_ipv4 | default(ansible_default_ipv4.address) }}"

View File

@@ -13,3 +13,4 @@
fstype: efs
opts: "defaults,_netdev"
state: mounted
ignore_errors: yes

View File

@@ -1,13 +1,14 @@
---
- name: Restart Product
service:
become: true
systemd:
name: "{{ atl_systemd_service_name }}"
state: restarted
when: atl_startup_restart
- name: Enable Product
service:
systemd:
name: "{{ atl_systemd_service_name }}"
enabled: true
when: atl_startup_enable

View File

@@ -7,6 +7,6 @@
owner: root
group: root
mode: 0640
notify:
- Enable Product
- Restart Product
# notify:
# - Enable Product
# - Restart Product