Clones a git repo using Plesk.
No special requirements:
- a server running plesk
- this role requires admin access for plesk
Required variables are listed below and can be set with values (see vars/main.yml
):
host_url: <your-strato-server-id>.stratoserver.net
host_port: 8443
domain_name: "mydomain.com"
subdomain_name: "my-new-instance"
plesk_admin_user: "admin"
plesk_admin_pw: "secure-admin-pw"
repo_name: "app"
remote_url: "https://github.com/itexia/ansible.role.create-subdomain-using-plesk-api.git"
None.
- hosts: strato-server
become: yes
vars_files:
- vars/main.yml
roles:
- { role: ansible.role.clone-git-repo }
Inside vars/main.yml
:
host_url: <your-strato-server-id>.stratoserver.net
host_port: 8443
domain_name: "mydomain.com"
subdomain_name: "my-new-instance"
plesk_admin_user: "admin"
plesk_admin_pw: "secure-admin-pw"
repo_name: "app"
remote_url: "https://github.com/itexia/ansible.role.create-subdomain-using-plesk-api.git"
This role was created in 2018 by Sergej Kukshausen and Susann Sgorzaly.