Skip to content

Commit

Permalink
???
Browse files Browse the repository at this point in the history
  • Loading branch information
dhvcc committed Feb 12, 2024
1 parent e1ec631 commit 09172f1
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .cfg/playbook-with-mac.yaml
Original file line number Diff line number Diff line change
@@ -1,15 +1,17 @@
---
- name: Install dependencies and configure environment
hosts: localhost
become: yes
gather_facts: true
become: no
gather_facts: yes
tasks:
- name: Update apt cache (Ubuntu)
become: yes
apt:
update_cache: yes
when: ansible_os_family == 'Debian'

- name: Install essential packages (Ubuntu)
become: yes
apt:
name: "{{ item }}"
state: present
Expand Down Expand Up @@ -41,12 +43,12 @@
when: ansible_os_family == 'Debian'

- name: Update Homebrew (macOS)
become: yes
homebrew:
state: latest
when: ansible_os_family == 'Darwin'

- name: Install essential packages (macOS)
become: false
#homebrew:
# name: "{{ item }}"
ansible.builtin.command:
Expand Down

0 comments on commit 09172f1

Please sign in to comment.