Description : The psacct package contains several utilities for monitoring process
: activities, including ac, lastcomm, accton and sa. The ac command
: displays statistics about how long users have been logged on. The
: lastcomm command displays information about previous executed
: commands. The accton command turns process accounting on or off. The
: sa command summarizes information about previously executed
: commands.
Ansible loads plugins automatically too, loading each type of plugin separately from a directory named for the type of plugin. Here’s the full list of plugin directory names:
action_plugins*
cache_plugins
callback_plugins
connection_plugins
filter_plugins*
inventory_plugins
lookup_plugins
shell_plugins
strategy_plugins
test_plugins*
vars_plugins
To load your local plugins automatically, create or add them in any of these locations:
any directory added to the relevant ANSIBLE_plugin_type_PLUGINS environment variable (these variables, such as $ANSIBLE_INVENTORY_PLUGINS and $ANSIBLE_VARS_PLUGINS take colon-separated lists like $PATH)
the directory named for the correct plugin_type within ~/.ansible/plugins/ - for example, ~/.ansible/plugins/callback
the directory named for the correct plugin_type within /usr/share/ansible/plugins/ - for example, /usr/share/ansible/plugins/action
- name: create users
user:
name: "{{ item }}"
createhome: yes
state: present
password: "{{ lookup('password', '/tmp/' + ansible_host + '_' + item + '_password.txt encrypt=md5_crypt chars=ascii_letters,digits length=1
update_password: on_create
with_items:
- "{{ users }}"
register: newuser