From b94d782139b11a462dc8e8c3ef11c69ebaf9dd5a Mon Sep 17 00:00:00 2001 From: vincent Date: Thu, 29 Nov 2018 22:51:39 +0100 Subject: [PATCH] create role ansible mananger --- README.md | 1 + roles/common/defaults/main.yml | 0 roles/common/handlers/main.yml | 0 server.yml | 9 +++++++++ site.yml | 2 +- staging | 3 +++ workstation.yml | 15 +++++++++++++++ 7 files changed, 29 insertions(+), 1 deletion(-) delete mode 100644 roles/common/defaults/main.yml delete mode 100644 roles/common/handlers/main.yml diff --git a/README.md b/README.md index 456aecc..f4ba126 100644 --- a/README.md +++ b/README.md @@ -11,6 +11,7 @@ - [ ] workstation role -install wm software +- [ ] ansible manager - [ ] system role: - check user diff --git a/roles/common/defaults/main.yml b/roles/common/defaults/main.yml deleted file mode 100644 index e69de29..0000000 diff --git a/roles/common/handlers/main.yml b/roles/common/handlers/main.yml deleted file mode 100644 index e69de29..0000000 diff --git a/server.yml b/server.yml index e69de29..686c8a9 100644 --- a/server.yml +++ b/server.yml @@ -0,0 +1,9 @@ +--- +- hosts: server + roles: + - system + - autofs + - dns + - ssmtp + - tt-rss + - gitea diff --git a/site.yml b/site.yml index 7cd809f..f4acb87 100644 --- a/site.yml +++ b/site.yml @@ -1,3 +1,3 @@ --- - import_playbook: server.yml -- import_playbook: workstation.yml +- import_playbook: workstation.yml \ No newline at end of file diff --git a/staging b/staging index 9ef6322..6fa7b77 100644 --- a/staging +++ b/staging @@ -2,3 +2,6 @@ [server] nas debian + +[workstation] +nas \ No newline at end of file diff --git a/workstation.yml b/workstation.yml index e69de29..e7aefc8 100644 --- a/workstation.yml +++ b/workstation.yml @@ -0,0 +1,15 @@ +--- +- hosts: workstation + roles: + - system + - ansible-manager + - autofs + - Windows_manager + + vars_prompt: + - name: "githubuser" + prompt: "Enter your github username" + private: no + - name: "githubpassword" + prompt: "Enter your github password" + private: yes \ No newline at end of file