|
@ -47,11 +47,10 @@ |
|
|
notify: |
|
|
notify: |
|
|
- restart login |
|
|
- restart login |
|
|
|
|
|
|
|
|
- name: add login init script |
|
|
|
|
|
template: src=login.j2 dest=/etc/init.d/login mode=755 |
|
|
|
|
|
register: add_login_startup_script |
|
|
|
|
|
notify: |
|
|
|
|
|
- restart login |
|
|
|
|
|
|
|
|
- name: add systemd service for api server |
|
|
|
|
|
template: |
|
|
|
|
|
src: login.service |
|
|
|
|
|
dest: /etc/systemd/system/login.service |
|
|
|
|
|
|
|
|
- name: create /var/log/login.log |
|
|
- name: create /var/log/login.log |
|
|
file: |
|
|
file: |
|
@ -72,10 +71,5 @@ |
|
|
systemd: |
|
|
systemd: |
|
|
daemon_reload: yes |
|
|
daemon_reload: yes |
|
|
name: login |
|
|
name: login |
|
|
when: add_login_startup_script.changed |
|
|
|
|
|
|
|
|
|
|
|
- include_role: |
|
|
|
|
|
name: service |
|
|
|
|
|
vars: |
|
|
|
|
|
service_name: login |
|
|
|
|
|
service_packages: null |
|
|
|
|
|
|
|
|
state: started |
|
|
|
|
|
enabled: yes |