Created
November 13, 2025 04:02
-
-
Save HauptJ/115957390c3eb2db2b6fa5356518bdf2 to your computer and use it in GitHub Desktop.
Ansible Script to Install VSCode on RHEL Systems with DNF
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env ansible-playbook | |
| --- | |
| - name: Install Text Editors | |
| hosts: localhost | |
| become: true | |
| gather_facts: False | |
| tasks: | |
| - name: Add VSC repo | |
| yum_repository: | |
| name: code | |
| description: Visual Studio Code | |
| baseurl: https://packages.microsoft.com/yumrepos/vscode/ | |
| gpgkey: https://packages.microsoft.com/keys/microsoft.asc | |
| gpgcheck: yes | |
| enabled: yes | |
| state: present | |
| - name: Install VScode | |
| dnf: | |
| name: | |
| - code | |
| state: latest |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment