From d17c5c45d1432e54ca96f0d6e6cfa361cb6afff3 Mon Sep 17 00:00:00 2001 From: deepend Date: Tue, 2 Jan 2024 22:19:49 +0000 Subject: [PATCH] Delete include/ansible.sh moving on from ansible. --- include/ansible.sh | 24 ------------------------ 1 file changed, 24 deletions(-) delete mode 100644 include/ansible.sh diff --git a/include/ansible.sh b/include/ansible.sh deleted file mode 100644 index 02fd79d..0000000 --- a/include/ansible.sh +++ /dev/null @@ -1,24 +0,0 @@ - currdir=`pwd` - cd $REPO_LOCATION; git pull - echo "--- -- name: Setting up $1 - user: - name: $1 - groups: tilde - state: present - skeleton: /etc/skel - shell: /bin/bash - system: no - createhome: yes - home: /home/$1 -- authorized_key: - user: $1 - state: present - key: \"$3\"" > $REPO_LOCATION/roles/shell/tasks/users/$YAML_FILE - - echo "- include: users/$YAML_FILE" >> $REPO_LOCATION/roles/shell/tasks/users.yml - git add $REPO_LOCATION/roles/shell/tasks/users/$YAML_FILE - git commit -am "Adding user $1" - git push - cd $currdir - $GEN_TDP | sudo tee $TILDE_JSON