diff --git a/ansible/roles/bootstrap_any/tasks/main.yml b/ansible/roles/bootstrap_any/tasks/main.yml index a270dcb4a0..d360629ee1 100644 --- a/ansible/roles/bootstrap_any/tasks/main.yml +++ b/ansible/roles/bootstrap_any/tasks/main.yml @@ -2,11 +2,9 @@ - name: Create group deployer group: name=deployer state=present - become: yes - name: Create user deployer user: name=deployer comment="deployer" group=deployer groups=sudo shell=/bin/bash - become: yes - name: Giving access to sudo without password lineinfile: @@ -15,11 +13,11 @@ state: present - name: Add ssh public key deployer - authorized_key: user=deployer key='{{ssh_public_key_deployer}}' - become: yes + authorized_key: + user: deployer + key: "{{ lookup('file', '{{ ssh_public_key_deployer }}') }}" - name: Create ulimit configuration template: src: limits.conf.j2 dest: "{{ ulimit_config_location }}" - become: yes