Commit 79aad680 authored by Julien Muchembled's avatar Julien Muchembled

re6st-node.service has been renamed to re6stnet.service

parent d6778722
......@@ -36,8 +36,8 @@
lineinfile: dest=/etc/re6stnet/re6stnet.conf line="interface {{ lan_iface_name }}"
when: interface_name != "noname"
- name: restart re6st-node service
service: name=re6st-node state=restarted enabled=yes
- name: restart re6stnet service
service: name=re6stnet state=restarted enabled=yes
roles:
- re6stnet
......@@ -11,18 +11,6 @@
stat: path=/etc/re6stnet/re6stnet.conf
register: recheck_re6stnet_conf
- name: stat re6stnet.service
stat: path=/etc/systemd/re6stnet.service
register: re6stnet
- name: stat re6st-node.service
stat: path=/etc/systemd/system/re6st-node.service
register: re6stnode
- name: set re6st-node.service file
copy: src=/etc/systemd/re6stnet.service dest=/etc/systemd/system/re6st-node.service
when: ansible_distribution == 'CentOS' and ansible_distribution_version >= '7' and re6stnet.stat.exists == True and re6stnode.stat.exists == False
- name: Start re6st-node service
service: name=re6st-node state=started enabled=yes
- name: Start re6stnet service
service: name=re6stnet state=started enabled=yes
when: recheck_re6stnet_conf.stat.exists == True
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment