update the ansible role

This commit is contained in:
Andreas Zweili 2017-10-29 17:20:58 +01:00
parent 3d7d9dc940
commit 3d349653c3
4 changed files with 3 additions and 9 deletions

View File

@ -1,5 +1,5 @@
[webserver]
webtech.2li.local
10.7.89.114
[rebootable:children]
webserver

View File

@ -1,13 +1,10 @@
---
- name: reconfigure tzdata
command: dpkg-reconfigure -f noninteractive tzdata
remote_user: ansible
notify: Restart NTP service
- name: Restart NTP service
remote_user: ansible
service: name=ntp state=restarted
- name: rebuild locales
remote_user: ansible
command: /usr/sbin/locale-gen

View File

@ -8,7 +8,7 @@
command: passwd -l root
- name: Add deploy user
user: name={{ deploy_user_name }} shell=/bin/bash password=123456789
user: name={{ deploy_user_name }} shell=/bin/bash password=$6$yWHFPhqJ$Il28ddG4zxPC3FWeRZeRsE8Aj0bE1YuNN.QB08xxyBDXfj1bp2kK1PEWbCmQmgSCuzj7IP45SNxosc./mV9bB/
- name: Add deploy user to sudoers
lineinfile: "dest=/etc/sudoers
@ -47,6 +47,3 @@
- { regexp: '^#? ?en_GB.UTF-8 UTF-8', line: 'en_GB.UTF-8 UTF-8', state: present }
notify:
- rebuild locales
- name: restart ssh
service: name=ssh state=restarted

View File

@ -1,5 +1,5 @@
---
- hosts: webtech.2li.local
- hosts: webserver
become: true
roles:
- common