No description
  • Jinja 70.3%
  • PowerShell 29.7%
Find a file
semantic-release-bot 618a2fa9ff chore(release): 1.9.0 [skip ci]
# [1.9.0](https://github.com/de-it-krachten/ansible-role-powershell_linux/compare/v1.8.0...v1.9.0) (2026-07-26)

### Bug Fixes

* Standarize vars.yml ([b3f84a2](b3f84a2496))

### Features

* Add support for ansible-core 2.20+ ([34e5933](34e5933dc4))
* Added support for Fedora 44 ([83d8c45](83d8c455ec))
* Drop support for Fedora 42 ([6a4b004](6a4b004fe3))
2026-07-26 19:57:10 +00:00
.github/workflows Update CI 2026-07-23 16:31:56 +02:00
defaults feat: Update supported platforms & CI 2023-09-09 18:09:50 +02:00
files Add removing modules 2021-12-17 10:08:29 +01:00
meta Update CI 2026-06-07 17:51:48 +02:00
molecule/default Update CI 2026-07-25 17:38:37 +02:00
tasks feat: Add support for ansible-core 2.20+ 2026-06-07 16:25:38 +02:00
.ansible-lint Update CI 2026-06-07 17:51:48 +02:00
.cicd Update CI 2026-06-09 11:17:37 +02:00
.cicd.overwrite Update CI 2026-06-07 17:51:48 +02:00
.collections feat: Move to FQCN 2022-10-09 22:20:16 +02:00
.gitignore feat: Update supported platforms & CI 2024-12-29 11:43:34 +01:00
.releaserc.yml Update CI 2026-03-06 23:02:23 +01:00
.roles feat: Update CI to latest standards 2022-10-09 22:20:39 +02:00
.yamllint feat: Update supported platforms & CI 2024-12-29 11:43:34 +01:00
CHANGELOG.md chore(release): 1.9.0 [skip ci] 2026-07-26 19:57:10 +00:00
README.md Update CI 2026-06-07 17:51:48 +02:00

CI

ansible-role-powershell_linux

Installs & configures Powershell on various Linux distributions

Dependencies

Roles

None

Collections

None

Platforms

Supported platforms

  • Red Hat Enterprise Linux 81
  • RockyLinux 8
  • OracleLinux 8
  • AlmaLinux 8
  • Debian 11 (Bullseye)
  • Ubuntu 22.04 LTS
  • Fedora 43
  • Fedora 441

Note: 1 : no automated testing is performed on these platforms

Role Variables

defaults/main.yml


# name of the package
powershell_linux_package: powershell

# Directory to copy helper scripts to
powershell_linux_script_dir: /usr/local/bin

# List of default helper scripts
powershell_linux_scripts:
  - install-module.ps1
  - remove-module.ps1
  - register-repository.ps1
  - unregister-repository.ps1

# List of custom helper scripts
powershell_linux_scripts_custom: []

defaults/family-Debian.yml


# Type of installation (package/binary)
powershell_install_type: package

defaults/family-RedHat-9.yml


# Type of installation (package/binary)
powershell_install_type: binary

# List of package required
powershell_packages:
  - libicu

defaults/family-RedHat.yml


# Type of installation (package/binary)
powershell_install_type: package

defaults/family-Suse.yml


# Type of installation (package/binary)
powershell_install_type: package

defaults/Fedora.yml


# Type of installation (package/binary)
powershell_install_type: binary

# List of package required
powershell_packages:
  - libicu

Example Playbook

molecule/default/converge.yml


- name: sample playbook for role 'powershell_linux'
  hosts: all
  become: 'yes'
  vars:
    molecule_driver: '{{ lookup(''env'', ''MOLECULE_DRIVER_NAME'') }}'
    powershell_linux_modules:
      - name: VMware.PowerCLI
        version: 12.7.0.20091289
  tasks:
    - name: Include role 'powershell_linux'
      ansible.builtin.include_role:
        name: powershell_linux