From 1ac644d8d15c2b6d6da020f808f9319ee1508fec Mon Sep 17 00:00:00 2001 From: Salt Date: Tue, 16 Jun 2020 10:08:12 -0500 Subject: [PATCH] Fix closing quote, rename sudoers config --- home.yml | 1 - localhost-deploy.sh | 2 +- roles/common/tasks/ansibleuser.yml | 4 ++-- roles/common/templates/{90-ansible.cfg => 90-ansible} | 0 4 files changed, 3 insertions(+), 4 deletions(-) rename roles/common/templates/{90-ansible.cfg => 90-ansible} (100%) diff --git a/home.yml b/home.yml index dcc199e..97fb751 100644 --- a/home.yml +++ b/home.yml @@ -2,7 +2,6 @@ # vim:ft=ansible: --- - hosts: localhost - connection: local roles: - role: desktop vars: diff --git a/localhost-deploy.sh b/localhost-deploy.sh index 9bb9d6f..dedc115 100755 --- a/localhost-deploy.sh +++ b/localhost-deploy.sh @@ -12,5 +12,5 @@ if ! command -v ansible > /dev/null 2>&1; then sudo apt-get install python3-pip python3-setuptools -y sudo pip3 install ansible fi -ansible-playbook site.yml -l "$HOSTNAME" -e "ansible_user=$USER" --ask-become-pass --ask-vault-pass "$@" +ansible-playbook site.yml -l "$HOSTNAME" -e "ansible_user=$USER ansible_connection=local ansible_host=localhost" --ask-become-pass --ask-vault-pass "$@" diff --git a/roles/common/tasks/ansibleuser.yml b/roles/common/tasks/ansibleuser.yml index 8282f14..2cfc2d3 100644 --- a/roles/common/tasks/ansibleuser.yml +++ b/roles/common/tasks/ansibleuser.yml @@ -16,7 +16,7 @@ key: "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQC8pjK7Z6V9IjxRtLB9Xwt5Rujj0iMQqOVExRkmkIzjEcblV/cqtwx4fOijoN9eQlmrjQg05rBWoHJoUiLH5LimU2HPQt9vSDSt/tTXNafhvi3St3nz+GA9yCwAkJfvz2QL/vnU7sfveYC2xmWZC0xjcG4bl8pL2GJgfyh4OnfS9vNRTpn1kAJ/Fl4vRLtRaFx1WzF3/RJUOkesYLegawSRJsaIamJFI5YxHe5VeTnFefVtssgbGrOj19uRDIZkBW/5uWsnNPVwbGUT089qioS11QFJaVOQCgU/E+4lxCHlRfLQ+gnXvaQV3j0JFk/I1bZNlCcNLHc0ZasXIqV+BUaR4au35QkDBjh38DCxesZ775tudXUp7KP6OHCC9i9ncIkum3mE+4K+0KAlS0oevUQdfguXkRQ6q3vydxEgWbBOx3jHi7i5AwvOnJqZRmUnfFp0qfhGfcS2pLEZhUcd0bOM6qAyK1XD5XRzXoVLS9bdHNUwCaIWie0tOYMLLmNooTU= ansible" - name: Add Ansible user sudoers rule template: - src: 90-ansible.cfg - dest: "/etc/sudoers.d/90-ansible.cfg + src: 90-ansible + dest: "/etc/sudoers.d/90-ansible" mode: "0440" become: yes diff --git a/roles/common/templates/90-ansible.cfg b/roles/common/templates/90-ansible similarity index 100% rename from roles/common/templates/90-ansible.cfg rename to roles/common/templates/90-ansible