How do I learn how to replace the linux command with an executable yaml and learn how to write it?

Asked 2 months ago, Updated 2 months ago, 4 views

I'd like to rewrite the steps to set up CentOS 7 to Yaml, an answerable, to automate it.

However, each component you want to install
nginx·php-fpm·postgres·vftps·webmin
Repository Set Installation and Various Settings

It's hard to find a way to replace text replacement with Yaml, an easy one.

I would appreciate it if you could tell me how or how to learn how to replace the linux command with the Yaml of an executable.

centos ansible

2022-09-30 13:56

1 Answers

All you have to do is find the appropriate module yourself from the Module Index—Ansible Documentation.Ansible has a set of modules for common operations such as file and package operations.Here are some of the key modules that might help.

  • Files modules
    Copy Files (copy) and Change Access Permissions (acl) are available.
  • Packaging modules
    A module for package operation is provided.For CentOS 7, use yum.
  • System modules
    Commonly used modules such as cron and systemd are available.
  • Commands modules
    Module for executing any command.If you do not have the appropriate module and you want to configure it with the command, you can use this one.

Each provides a detailed description and example of the module.Unfortunately, the explanation of each module is not translated into Japanese even in the Japanese version.Please read the instructions carefully as some operating systems may not work and some may use replacements (especially Windows).


2022-09-30 13:56

If you have any answers or tips


© 2022 OneMinuteCode. All rights reserved.