GitHunt
DA

darkhonor/ansible-role-powershell

Installs PowerShell on a system to include support for airgap environments

Ansible Role: PowerShell

Installs the PowerShell application,
including support for an airgap environment.

Requirements

None

Role Variables

You can modify any of the following variables as you wish in the role's defaults/main.yml:

Dependencies

None

Example Playbook

Here is an example playbook using this role:

- name: Configure workstations
  become: true
  become_method: sudo
  gather_facts: true
  hosts: all
  roles:
    - role: powershell
      airgap: true
      microsoft_rpm_repo_url: "{{ repo_server }}/{{ microsoft_repo_path }}"
      microsoft_gpg_key_url: "{{ repo_server }}/{{ microsoft_cert_path }}"
      trust_repository_certs: false

License

MIT

Author Information

Alex Ackerman, GitHub @darkhonor

darkhonor/ansible-role-powershell | GitHunt