Documentation of the actions provided in module transilience.actions.builtin
.
Same as Ansible's builtin.apt.
force_apt_get
is ignored: apt-get
is always used.
Not yet implemented:
- force
- update_cache_retries
- update_cache_retry_max_delay
Parameters:
- allow_unauthenticated [
bool
] =False
- autoclean [
bool
] =False
- autoremove [
bool
] =False
- cache_valid_time [
int
] =0
- deb [
List[str]
] - default_release [
Optional[str]
] =None
- dpkg_options [
List[str]
] - fail_on_autoremove [
bool
] =False
- force_apt_get [
bool
] =False
- install_recommends [
Optional[bool]
] =None
- name [
List[str]
] - only_upgrade [
bool
] =False
- policy_rc_d [
Optional[int]
] =None
- purge [
bool
] =False
- state [
str
] ='present'
- update_cache [
bool
] =False
- upgrade [
str
] ='no'
Same as Ansible's builtin.blockinfile.
Not yet implemented:
- backup
- unsafe_writes
- validate
Parameters:
- block [
Union[str, bytes]
] =''
- create [
bool
] =False
- group [
Union[str, int, None]
] =None
: set group, as gid or group name - insertafter [
Optional[str]
] =None
- insertbefore [
Optional[str]
] =None
- marker [
str
] ='# {mark} ANSIBLE MANAGED BLOCK'
- marker_begin [
str
] ='BEGIN'
- marker_end [
str
] ='END'
- mode [
Union[str, int, None]
] =None
: set mode, as octal or any expressionchmod
can use - owner [
Union[str, int, None]
] =None
: set owner, as uid or user name - path [
str
] =''
- state [
Optional[str]
] =None
Same as Ansible's builtin.command.
Not yet implemented:
- strip_empty_ends
Parameters:
- argv [
List[str]
] - chdir [
Optional[str]
] =None
- cmd [
Optional[str]
] =None
- creates [
Optional[str]
] =None
- removes [
Optional[str]
] =None
- stderr [
Optional[bytes]
] =None
- stdin [
Union[str, bytes, None]
] =None
- stdin_add_newline [
bool
] =True
- stdout [
Optional[bytes]
] =None
Same as Ansible's builtin.copy.
Not yet implemented:
- backup
- decrypt
- directory_mode
- force
- local_follow
- remote_src
- unsafe_writes
- validate
- src as directory
Parameters:
- checksum [
Optional[str]
] =None
- content [
Union[str, bytes, None]
] =None
- dest [
str
] =''
- follow [
bool
] =True
- group [
Union[str, int, None]
] =None
: set group, as gid or group name - mode [
Union[str, int, None]
] =None
: set mode, as octal or any expressionchmod
can use - owner [
Union[str, int, None]
] =None
: set owner, as uid or user name - src [
Optional[str]
] =None
Fail with a custom message
Same as Ansible's builtin.fail.
Parameters:
- msg [
str
] ='Failed as requested from task'
Same as Ansible's builtin.file.
Not yet implemented:
- access_time
- modification_time
- modification_time_format
- unsafe_writes
Parameters:
- follow [
bool
] =True
: set attributes of symlink destinations instead of the symlinks themselves - force [
bool
] =False
- group [
Union[str, int, None]
] =None
: set group, as gid or group name - mode [
Union[str, int, None]
] =None
: set mode, as octal or any expressionchmod
can use - owner [
Union[str, int, None]
] =None
: set owner, as uid or user name - path [
Optional[str]
] =None
: Path to the file or directory being managed - recurse [
bool
] =False
: Recursively apply attributes (only used with state=directory) - src [
Optional[str]
] =None
: target of the link or hard link - state [
str
] ='file'
: Valid: file, directory, link, hard, touch, absent
Do nothing, successfully.
Parameters:
- changed [
bool
] =False
: Set to True to pretend the action performed changes
Same as Ansible's builtin.systemd
Parameters:
- daemon_reexec [
bool
] =False
- daemon_reload [
bool
] =False
- enabled [
Optional[bool]
] =None
- force [
bool
] =False
- masked [
Optional[bool]
] =None
- no_block [
bool
] =False
- scope [
str
] ='system'
- state [
Optional[str]
] =None
- unit [
Optional[str]
] =None
Same as Ansible's builtin.user
Parameters:
- append [
bool
] =False
- authorization [
Optional[str]
] =None
- comment [
Optional[str]
] =None
- create_home [
bool
] =True
- expires [
Optional[float]
] =None
- force [
bool
] =False
- generate_ssh_key [
bool
] =False
- group [
Optional[str]
] =None
- groups [
List[str]
] - hidden [
Optional[bool]
] =None
- home [
Optional[str]
] =None
- local [
bool
] =False
- login_class [
Optional[str]
] =None
- move_home [
bool
] =False
- name [
Optional[str]
] =None
- non_unique [
bool
] =False
- password [
Optional[str]
] =None
- password_expire_max [
Optional[int]
] =None
- password_expire_min [
Optional[int]
] =None
- password_lock [
Optional[bool]
] =None
- profile [
Optional[str]
] =None
- remove [
bool
] =False
- role [
Optional[str]
] =None
- seuser [
Optional[str]
] =None
- shell [
Optional[str]
] =None
- skeleton [
Optional[str]
] =None
- ssh_key_bits [
Optional[int]
] =None
- ssh_key_comment [
Optional[str]
] =None
- ssh_key_file [
Optional[str]
] =None
- ssh_key_fingerprint [
Optional[str]
] =None
- ssh_key_passphrase [
Optional[str]
] =None
- ssh_key_pubkey [
Optional[str]
] =None
- ssh_key_type [
str
] ='rsa'
- state [
str
] ='present'
- system [
bool
] =False
- uid [
Optional[int]
] =None
- update_password [
str
] ='always'