From e9e772f4fa296f8167880b9a9b77e75415e7a6e0 Mon Sep 17 00:00:00 2001 From: Tom Alexander Date: Sat, 10 Dec 2022 22:39:11 -0500 Subject: [PATCH] Fix creating the connection plugins directory on linux. --- ansible/roles/ansible/tasks/linux.yaml | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/ansible/roles/ansible/tasks/linux.yaml b/ansible/roles/ansible/tasks/linux.yaml index bfaf17e..dde105c 100644 --- a/ansible/roles/ansible/tasks/linux.yaml +++ b/ansible/roles/ansible/tasks/linux.yaml @@ -13,16 +13,26 @@ # name: [] # state: present # update_cache: true - + - name: Install packages package: name: - ansible state: present +- name: Create directories + file: + name: "{{ item }}" + state: directory + mode: 0755 + owner: root + group: wheel + loop: + - /usr/share/ansible/plugins/connection_plugins + - name: Install sshjail plugin ansible.builtin.get_url: url: https://raw.githubusercontent.com/austinhyde/ansible-sshjail/e712c537ecdfc7a660f222fbac4172dd715fc130/sshjail.py dest: /usr/share/ansible/plugins/connection_plugins/sshjail.py - mode: '0555' + mode: "0555" checksum: sha512:730c887ae7bbf2de34da44fb10a45fdeff649e3f2447df821c93ef02a21ecbef7db2fd57f1fc85fcd0b5b86fa30aa2b9ef143865d1e5086620c7dbe0633207cd