From 7b024538f2bb491f5efefd04b5322313c9c4692e Mon Sep 17 00:00:00 2001 From: nazunalika Date: Sun, 24 Jan 2021 16:30:46 -0700 Subject: [PATCH] efs --- ansible/playbooks/role-rocky-kojid.yml | 1 + ansible/playbooks/role-rocky-kojihub.yml | 4 ++++ ansible/playbooks/vars/koji-common.yml | 8 ++++++++ 3 files changed, 13 insertions(+) create mode 100644 ansible/playbooks/vars/koji-common.yml diff --git a/ansible/playbooks/role-rocky-kojid.yml b/ansible/playbooks/role-rocky-kojid.yml index ae59a2a..d69ea2f 100644 --- a/ansible/playbooks/role-rocky-kojid.yml +++ b/ansible/playbooks/role-rocky-kojid.yml @@ -7,6 +7,7 @@ - vars/vaults/encpass.yml - vars/common.yml - vars/kojid.yml + - vars/koji-common.yml # This is to try to avoid the handler issue in pre/post tasks handlers: diff --git a/ansible/playbooks/role-rocky-kojihub.yml b/ansible/playbooks/role-rocky-kojihub.yml index e1c0b88..dd3d8a3 100644 --- a/ansible/playbooks/role-rocky-kojihub.yml +++ b/ansible/playbooks/role-rocky-kojihub.yml @@ -7,6 +7,7 @@ - vars/vaults/encpass.yml - vars/common.yml - vars/kojihub.yml + - vars/koji-common.yml # This is to try to avoid the handler issue in pre/post tasks handlers: @@ -110,6 +111,9 @@ state: present post_tasks: + - name: "Setup shared filesystem mount" + import_tasks: tasks/koji_efs.yml + - name: Touching run file that ansible has ran here file: path: /var/log/ansible.run diff --git a/ansible/playbooks/vars/koji-common.yml b/ansible/playbooks/vars/koji-common.yml new file mode 100644 index 0000000..67f942d --- /dev/null +++ b/ansible/playbooks/vars/koji-common.yml @@ -0,0 +1,8 @@ +--- +# Koji common +koji_efs_mount_path: /mnt/koji +koji_efs_fsid: whatever.amazonaws.com +koji_efs_fs_type: efs +koji_efs_fs_opts: + - tls + - iam