瀏覽代碼

ansible: use sudo only for installing packages

pull/1/head
10sr 10 年之前
父節點
當前提交
901177dfc8
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. +1
    -1
      ansible/ansible.yml

+ 1
- 1
ansible/ansible.yml 查看文件

@@ -1,12 +1,12 @@
---
- hosts: all
sudo: yes
vars:
packages: [rsync, git, htop]
tasks:
- name: install packages
action: pacman pkg={{ item }} state=installed
with_items: packages
sudo: yes
when: ansible_os_family == "Archlinux"
# handlers:
# - name: restart ntpd


Loading…
取消
儲存