From 93e8b2ea02554df407c93320171d90155d1514a1 Mon Sep 17 00:00:00 2001 From: Wolfgang Hotwagner Date: Wed, 15 Nov 2023 12:57:50 +0000 Subject: [PATCH] initial commit --- README.md | 40 +++++++++++++++++++++++++++++++++++++ defaults/main.yml | 2 ++ meta/main.yml | 51 +++++++++++++++++++++++++++++++++++++++++++++++ tasks/main.yml | 12 +++++++++++ 4 files changed, 105 insertions(+) create mode 100644 README.md create mode 100644 defaults/main.yml create mode 100644 meta/main.yml create mode 100644 tasks/main.yml diff --git a/README.md b/README.md new file mode 100644 index 0000000..e35c3e5 --- /dev/null +++ b/README.md @@ -0,0 +1,40 @@ +AECID Testbed Ansible acct +========================== + +This role installs user accounting on Debian/Ubuntu Systems + +Requirements +------------ + +Debian or Ubuntu Systems + +Role Variables +-------------- + +No variables. + +Dependencies +------------ + +No dependencies + +Example Playbook +---------------- + +``` + + - hosts: all + roles: + - role: acct +``` + +License +------- + +BSD + +Author Information +------------------ + +Wolfgang Hotwagner(https://www.ait.ac.at) + diff --git a/defaults/main.yml b/defaults/main.yml new file mode 100644 index 0000000..705ad23 --- /dev/null +++ b/defaults/main.yml @@ -0,0 +1,2 @@ +--- +# defaults file for acct diff --git a/meta/main.yml b/meta/main.yml new file mode 100644 index 0000000..5d0234c --- /dev/null +++ b/meta/main.yml @@ -0,0 +1,51 @@ +galaxy_info: + author: Wolfgang Hotwagner + description: Installs user accounting on Debian/Ubuntu Systems + company: Austrian Institute of Technology + + # If the issue tracker for your role is not on github, uncomment the + # next line and provide a value + # issue_tracker_url: http://example.com/issue/tracker + + # Choose a valid license ID from https://spdx.org - some suggested licenses: + # - BSD-3-Clause (default) + # - MIT + # - GPL-2.0-or-later + # - GPL-3.0-only + # - Apache-2.0 + # - CC-BY-4.0 + license: BSD-3-Clause + + min_ansible_version: 2.1 + + # If this a Container Enabled role, provide the minimum Ansible Container version. + # min_ansible_container_version: + + # + # Provide a list of supported platforms, and for each platform a list of versions. + # If you don't wish to enumerate all versions for a particular platform, use 'all'. + # To view available platforms and versions (or releases), visit: + # https://galaxy.ansible.com/api/v1/platforms/ + # + # platforms: + # - name: Fedora + # versions: + # - all + # - 25 + # - name: SomePlatform + # versions: + # - all + # - 1.0 + # - 7 + # - 99.99 + + galaxy_tags: + - Debian + - Ubuntu + - User + - Audit + - Logging + +dependencies: [] + # List your role dependencies here, one per line. Be sure to remove the '[]' above, + # if you add dependencies to this list. diff --git a/tasks/main.yml b/tasks/main.yml new file mode 100644 index 0000000..a8f00b1 --- /dev/null +++ b/tasks/main.yml @@ -0,0 +1,12 @@ +--- +# tasks file for acct +- name: Install acct + ansible.builtin.apt: + name: acct + state: present + +- name: Start acct + ansible.builtin.service: + name: acct.service + state: started + enabled: true