update the ansible role
This commit is contained in:
parent
3d7d9dc940
commit
3d349653c3
|
@ -1,5 +1,5 @@
|
|||
[webserver]
|
||||
webtech.2li.local
|
||||
10.7.89.114
|
||||
|
||||
[rebootable:children]
|
||||
webserver
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
---
|
||||
- hosts: webtech.2li.local
|
||||
- hosts: webserver
|
||||
become: true
|
||||
roles:
|
||||
- common
|
||||
|
|
Loading…
Reference in New Issue