-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathdeploy_aap_demo_site.yml
56 lines (45 loc) · 1.35 KB
/
deploy_aap_demo_site.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
---
- name: Deploy the AAP Demo website
hosts: "{{ my_server }}"
gather_facts: false
tasks:
- name: Get the create_date
register: create_date
ansible.builtin.command:
cmd: "date '+%Y-%m-%d'"
- name: Get the website start Time
register: website_start_time
ansible.builtin.command:
cmd: "date '+%H:%M:%S'"
- name: Debug vpc_create_time
ansible.builtin.debug:
var: vpc_create_time
- name: Debug machine_create_time
ansible.builtin.debug:
var: machine_create_time
- name: Debug post_install_time
ansible.builtin.debug:
var: post_install_time
- name: Debug lamp_time
ansible.builtin.debug:
var: lamp_time
- name: Debug subscription_time
ansible.builtin.debug:
var: subscription_time
- name: Debug insights_time
ansible.builtin.debug:
var: insights_time
- name: Copy the image file for the website
ansible.builtin.copy:
src: images/aap.png
dest: /var/www/html/aap.png
owner: root
group: root
mode: u+rw,g-wx,o-wx
- name: Copy the index.html for the website
ansible.builtin.template:
src: index_html_aapdemo.j2
dest: /var/www/html/index.html
owner: root
group: root
mode: u+rw,g-wx,o-wx