Skip to content

Commit

Permalink
Add ol9 playbook
Browse files Browse the repository at this point in the history
  • Loading branch information
nathanwn committed Aug 2, 2024
1 parent 2f37624 commit eb346cd
Show file tree
Hide file tree
Showing 2 changed files with 77 additions and 1 deletion.
2 changes: 1 addition & 1 deletion config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ nerd_fonts:
nvim_nightly:
release: "nightly"
nvim:
release: "v0.10.0"
release: "v0.10.1"
python:
versions:
- semver: "3.6.15"
Expand Down
76 changes: 76 additions & 0 deletions ol9.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
---
- name: OL9 environment playbook
hosts: localhost
vars_files:
- config.yml

pre_tasks:
- name: Display system info.
ansible.builtin.debug:
msg: "{{ item }}"
loop:
- ansible_os_family = {{ ansible_os_family }}
- ansible_distribution == {{ ansible_distribution }}
- ansible_distribution_major_version ==
{{ ansible_distribution_major_version }}
tags:
- always

- name: Debug
ansible.builtin.debug:
var: "{{ item }}"
loop:
- ansible_env.HOME
- ansible_env.USER
tags:
- debug

- name: Ensure certain directories exist.
ansible.builtin.file:
path: "{{ ansible_env.HOME }}/{{ item }}"
state: directory
mode: u=rwx,g=rx,o=r
loop:
- opt
- dev/personal
tags:
- always

tasks:
- name: Install core dependencies
become: true
ansible.builtin.dnf:
name: "{{ item }}"
state: present
update_cache: true
loop:
- gcc
- gcc-c++
- git
- htop
- java-17-openjdk-devel
- make
- man
- man-pages
- netcat
- podman
- podman-docker
- python3
- python3.11
- stow
- tmux
- tree
- zsh

- name: Install nvim
ansible.builtin.import_tasks: "tasks/nvim.yml"
tags:
- nvim

- name: Install sdkman

Check failure on line 70 in ol9.yml

View workflow job for this annotation

GitHub Actions / Lint

command-instead-of-module

curl used in place of get_url or uri module

Check failure on line 70 in ol9.yml

View workflow job for this annotation

GitHub Actions / Lint

risky-shell-pipe

Shells that use pipes should set the pipefail option.
ansible.builtin.shell:
cmd: |
curl -s "https://get.sdkman.io" | bash
creates: "{{ ansible_env.HOME }}/.sdkman/bin/sdkman-init.sh"
tags:
- sdkman

0 comments on commit eb346cd

Please sign in to comment.