|
@@ -3,9 +3,9 @@
|
|
echo "Creating group"
|
|
echo "Creating group"
|
|
groupadd Ansible
|
|
groupadd Ansible
|
|
echo "Creating user"
|
|
echo "Creating user"
|
|
-useradd -g Ansible -m -r -c \"Ansible user\" ansible
|
|
|
|
|
|
+useradd -g Ansible -m -r -c "Ansible user" ansible
|
|
echo "Set sudo rights"
|
|
echo "Set sudo rights"
|
|
-echo \"%Ansible ALL=(ALL) NOPASSWD: ALL\" > /etc/sudoers.d/Ansible
|
|
|
|
|
|
+echo "%Ansible ALL=(ALL) NOPASSWD: ALL" > /etc/sudoers.d/Ansible
|
|
echo "Set remote access"
|
|
echo "Set remote access"
|
|
mkdir /home/ansible/.ssh
|
|
mkdir /home/ansible/.ssh
|
|
chmod 700 /home/ansible/.ssh
|
|
chmod 700 /home/ansible/.ssh
|