浏览代码

treat raspbian correctly

master
父节点
当前提交
5d3ac1c575
共有 2 个文件被更改,包括 32 次插入18 次删除
  1. +0
    -18
      meta/main.yml
  2. +32
    -0
      tasks/main.yaml

+ 0
- 18
meta/main.yml 查看文件

@@ -1,18 +0,0 @@
dependencies:

# user setup
- name: root_user
- name: users
- name: fish

# system setup
- name: hostname
- name: locales
- name: timezone
- name: keyboard_configuration

# packages setup
- name: debian_repos
- name: debian_packages
- name: system_upgrade
- name: unattended-upgrades

+ 32
- 0
tasks/main.yaml 查看文件

@@ -0,0 +1,32 @@
---

# user setup
- import_role:
name: root_user
- import_role:
name: users
- import_role:
name: fish

# system setup
- import_role:
name: hostname
- import_role:
name: locales
- import_role:
name: timezone
- import_role:
name: keyboard_configuration

# packages setup
- import_role:
name: debian_repos
when:
- ansible_distribution == "Debian"
- ansible_lsb.id != "Raspbian"
- import_role:
name: debian_packages
- import_role:
name: system_upgrade
- import_role:
name: unattended-upgrades