File tree Expand file tree Collapse file tree 3 files changed +21
-3
lines changed Expand file tree Collapse file tree 3 files changed +21
-3
lines changed Original file line number Diff line number Diff line change 214
214
# Run Ansible playbook
215
215
# export ANSIBLE_LOG_PATH=/tmp/ansible.log && export ANSIBLE_DEBUG=True && export ANSIBLE_REMOTE_TEMP=/mnt/tmp
216
216
export ANSIBLE_LOG_PATH=/tmp/ansible.log && export ANSIBLE_REMOTE_TEMP=/mnt/tmp
217
- ansible-playbook -c chroot -i ' /mnt,' /tmp/ansible-playbook/ansible-nix/playbook.yml -vvv $ARGS
217
+ ansible-playbook -c chroot -i ' /mnt,' /tmp/ansible-playbook/ansible-nix/playbook.yml $ARGS
218
218
}
219
219
220
220
function update_systemd_services {
Original file line number Diff line number Diff line change 33
33
# Run Ansible playbook
34
34
# export ANSIBLE_LOG_PATH=/tmp/ansible.log && export ANSIBLE_DEBUG=True && export ANSIBLE_REMOTE_TEMP=/tmp
35
35
export ANSIBLE_LOG_PATH=/tmp/ansible.log && export ANSIBLE_REMOTE_TEMP=/tmp
36
- ansible-playbook /tmp/ansible-playbook/stage2/playbook.yml -vvv $ARGS
36
+ ansible-playbook /tmp/ansible-playbook/stage2/playbook.yml $ARGS
37
37
}
38
38
39
39
Original file line number Diff line number Diff line change @@ -66,7 +66,25 @@ source "amazon-ebs" "ubuntu" {
66
66
}
67
67
ssh_username = " ubuntu"
68
68
ena_support = true
69
-
69
+ run_tags = {
70
+ creator = " packer"
71
+ appType = " postgres"
72
+ packerExecutionId = " ${ var . packer-execution-id } "
73
+ }
74
+ run_volume_tags = {
75
+ creator = " packer"
76
+ appType = " postgres"
77
+ }
78
+ snapshot_tags = {
79
+ creator = " packer"
80
+ appType = " postgres"
81
+ }
82
+ tags = {
83
+ creator = " packer"
84
+ appType = " postgres"
85
+ postgresVersion = " ${ var . postgres-version } "
86
+ sourceSha = " ${ var . git-head-version } "
87
+ }
70
88
}
71
89
72
90
build {
You can’t perform that action at this time.
0 commit comments