arillso.ansible
Ansible Role: ansible
Description
Sets a scheduled task to ensure Ansible has access through WinRM interface.
Installation
ansible-galaxy install arillso.ansible
Requirements
None
Role Variables
ansible_ressource_name
Name of the folder where the data will be stored.
ansible_ressource_name: "{{ source_of_supply_name | default('Support') }}"
ansible_root_directory: "{{ ansible_env.SystemDrive }}\\{{ ansible_ressource_name }}"
ansible_directory
Whole path where the file should be stored
ansible_directory: "{{ ansible_root_directory }}\\ansible"
ansible_configure_remoting
Path where the Powershell script is stored.
ansible_configure_remoting: "{{ ansible_directory }}\\ConfigureRemotingForAnsible.ps1"
ansible_scheduled_task
ansible_scheduled_task: '-ExecutionPolicy Bypass -File "{{ ansible_configure_remoting }}" -CertValidityDays 3650 -ForceNewSSLCert -EnableCredSSP'
Example Playbook
- hosts: all
roles:
- arillso.ansible
Author
License
This project is under the MIT License. See the LICENSE file for the full license text.
Copyright
(c) 2020, Arillso
