Skip to content

Commit

Permalink
macOSではpipxを使えとのことで諸々修正
Browse files Browse the repository at this point in the history
gather_factsが有効にならないと条件分岐できないので有効にした
  • Loading branch information
cradle8810 committed May 2, 2024
1 parent ad00b61 commit 1a51da4
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 5 deletions.
2 changes: 1 addition & 1 deletion console.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
- name: Play for console.hayaworld.local
hosts: console
remote_user: hayato
gather_facts: false
gather_facts: true
become: true

vars_files:
Expand Down
3 changes: 3 additions & 0 deletions inventories/host_vars/macbook.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ brew_taps:
- ansible
- cmigemo
- figlet
- gnu-tar
- gnupg
- htop
- imagemagick
Expand All @@ -13,8 +14,10 @@ brew_taps:
- mas
- nkf
- p7zip
- pipx
- pdftoipe
- toilet
- unzip
- util-linux
- wget
- x264
Expand Down
2 changes: 1 addition & 1 deletion macbook.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
hosts: macbook
connection: local
remote_user: hayato
gather_facts: false
gather_facts: true

vars_files:
- inventories/host_vars/macbook.yml
Expand Down
2 changes: 1 addition & 1 deletion skylark.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
- name: Play for skylark.hayaworld.local
hosts: skylark
remote_user: hayato
gather_facts: false
gather_facts: true
become: true

vars_files:
Expand Down
10 changes: 8 additions & 2 deletions tasks/sns_dl_linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,13 @@
remote_src: true
mode: "0755"

# https://github.com/instaloader/instaloader
- name: Download instaloader
# https://gihub.com/instaloader/instaloader
- name: Download instaloader (Linux)
ansible.builtin.pip:
name: instaloader
when: ansible_distribution != 'Darwin'

Check failure on line 26 in tasks/sns_dl_linux.yml

View workflow job for this annotation

GitHub Actions / AnsibleLint

yaml[trailing-spaces]

Trailing spaces

- name: Download instaloader (macOS)
community.general.pipx:
name: instaloader

Check failure on line 30 in tasks/sns_dl_linux.yml

View workflow job for this annotation

GitHub Actions / AnsibleLint

yaml[trailing-spaces]

Trailing spaces
when: ansible_distribution == 'Darwin'

Check failure on line 31 in tasks/sns_dl_linux.yml

View workflow job for this annotation

GitHub Actions / AnsibleLint

yaml[trailing-spaces]

Trailing spaces

0 comments on commit 1a51da4

Please sign in to comment.