{"id":18754499,"url":"https://github.com/juju4/ansible-powershell","last_synced_at":"2026-03-19T06:12:15.125Z","repository":{"id":143723447,"uuid":"559366269","full_name":"juju4/ansible-powershell","owner":"juju4","description":"Set Powershell on linux, including config file and logging","archived":false,"fork":false,"pushed_at":"2026-01-24T22:56:14.000Z","size":120,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-01-25T09:07:42.009Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Jinja","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-2-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/juju4.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2022-10-29T22:15:10.000Z","updated_at":"2026-01-24T22:56:00.000Z","dependencies_parsed_at":null,"dependency_job_id":"50aa4f44-290e-4cfb-8795-bdc554948aef","html_url":"https://github.com/juju4/ansible-powershell","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/juju4/ansible-powershell","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/juju4%2Fansible-powershell","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/juju4%2Fansible-powershell/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/juju4%2Fansible-powershell/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/juju4%2Fansible-powershell/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/juju4","download_url":"https://codeload.github.com/juju4/ansible-powershell/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/juju4%2Fansible-powershell/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28816342,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-27T12:25:15.069Z","status":"ssl_error","status_checked_at":"2026-01-27T12:25:05.297Z","response_time":168,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-07T17:29:13.995Z","updated_at":"2026-01-27T16:01:09.674Z","avatar_url":"https://github.com/juju4.png","language":"Jinja","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Actions Status - Master](https://github.com/juju4/ansible-powershell/workflows/AnsibleCI/badge.svg)](https://github.com/juju4/ansible-powershell/actions?query=branch%3Amaster)\n[![Actions Status - Devel](https://github.com/juju4/ansible-powershell/workflows/AnsibleCI/badge.svg?branch=devel)](https://github.com/juju4/ansible-powershell/actions?query=branch%3Adevel)\n\n# powershell ansible role\n\nSetup powershell, its config and logging under linux.\n\nSee also\n* https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.core/about/about_logging_non-windows?view=powershell-7.2\n* https://petri.com/how-powershell-7-logging-works-in-linux/\n\n## Requirements \u0026 Dependencies\n\n### Ansible\nIt was tested on the following versions:\n * 2.13\n\n### Operating systems\n\nTested on Ubuntu 20.04 and 22.04.\n\n## Example Playbook\n\nJust include this role in your list.\nFor example\n\n```\n- host: myhost\n  roles:\n    - juju4.powershell\n```\n\nyou probably want to review variables\n\n## Variables\n\n```\npowershell_config_template: powershell.config.json.j2\npowershell_transcription_outputdir: /var/log/powershell/transcription\npowershell_executionpolicy: RemoteSigned\npowershell_enablescripts: true\npowershell_enablemodule_logging: true\npowershell_module_names:\n  - '*'\n  - PSReadline\n  - PowerShellGet\npowershell_enableprotectedeventlogging: true\npowershell_enabletranscripting: true\n\npowershell_syslog_target: /var/log/powershell/powershell.log\n\npowershell_logrotate_period: 'daily'\npowershell_logrotate_rotate: 90\npowershell_logrotate_compress: true\npowershell_logrotate_delaycompress: true\npowershell_logrotate_datext: true\npowershell_logrotate_datformat: '-%Y%m%d'\n```\n\n\n## Continuous integration\n\n```\n$ pip install molecule docker\n$ molecule test\n$ MOLECULE_DISTRO=ubuntu:20.04 molecule test --destroy=never\n```\n\n## Troubleshooting \u0026 Known issues\n\n* ExecutionPolicy setting does not work on Linux\n```\nPS /root\u003e Set-ExecutionPolicy RemoteSigned\nSet-ExecutionPolicy: Operation is not supported on this platform.\n```\nSee also: https://github.com/powershell/powershell/issues/7573, https://github.com/PowerShell/PowerShell/issues/1998, https://learn.microsoft.com/en-us/powershell/scripting/whats-new/unix-support?view=powershell-7.2\n\n## License\n\nBSD 2-clause\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjuju4%2Fansible-powershell","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjuju4%2Fansible-powershell","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjuju4%2Fansible-powershell/lists"}