oscpe262 / ansible-role-fish

An ansible role for installing fish and oh-my-fish
1 stars 0 forks source link

To run omf install... #2

Open flipswitchingmonkey opened 2 years ago

flipswitchingmonkey commented 2 years ago

use this:

- name: Install theme
  become: true
  become_user: '{{ item }}'
  command: 'fish -c "omf install {{ theme }}"'
  loop: '{{ userlist }}'

(note: i'm using a loop for users, not a dict)

editedbaseline commented 4 months ago

As an alternative, this also works:

- name: "Bob the Fish"
  shell:
    cmd: omf install bobthefish
  args:
    executable: /usr/bin/fish

I'm new to Ansible, but stumbled across a StackOverflow post which talked about differences between "command" and "shell"