Skip to content

Commit

Permalink
fix: updating ansible syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
beepdot committed Mar 16, 2020
1 parent b84656b commit 0b2d69d
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions ansible/roles/bootstrap_any/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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

0 comments on commit 0b2d69d

Please sign in to comment.