This repository has been archived on 2025-09-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files
tsg-wannat-ansible-deploy/roles/pppd_update_v2.4.9/tasks/main.yml

40 lines
878 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;
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