44 lines
939 B
YAML
44 lines
939 B
YAML
---
|
|
- name: "Creates /opt/tsg/framework/ppp2.4.9 directory"
|
|
file:
|
|
path: /opt/tsg/framework/ppp2.4.9
|
|
state: directory
|
|
|
|
- name: "copy pppd2.4.9.tgz to destination server"
|
|
copy:
|
|
src: "{{ role_path }}/files/ppp-2.4.9_disable_INET6.tgz"
|
|
dest: "/tmp/"
|
|
|
|
- name: "install pppd2.4.9"
|
|
shell:
|
|
cd /tmp/;
|
|
tar -zxf ppp-2.4.9_disable_INET6.tgz;
|
|
cd ppp-2.4.9_disable_INET6;
|
|
./configure;
|
|
./disable_HAVE_INET6.sh;
|
|
make;
|
|
make install
|
|
args:
|
|
warn: false
|
|
|
|
|
|
- name: "Template the pptpd.conf file"
|
|
template:
|
|
src: "{{ role_path }}/templates/pptpd.conf.j2"
|
|
dest: /etc/pptpd.conf
|
|
tags: template
|
|
|
|
- name: "Template the options.pptpd file"
|
|
template:
|
|
src: "{{ role_path }}/templates/options.pptpd.j2"
|
|
dest: /etc/ppp/options.pptpd
|
|
tags: template
|
|
|
|
- name: "enable pptpd service"
|
|
systemd:
|
|
name: pptpd
|
|
enabled: yes
|
|
daemon_reload: yes
|
|
state: restarted
|
|
|