Merge pull request 'ansible_init' (#3) from ansible_init into main
Reviewed-on: #3
This commit is contained in:
commit
980aeb39e7
|
|
@ -0,0 +1,712 @@
|
|||
[defaults]
|
||||
# (boolean) By default, Ansible will issue a warning when received from a task action (module or action plugin).
|
||||
# These warnings can be silenced by adjusting this setting to False.
|
||||
;action_warnings=True
|
||||
|
||||
# (list) Accept a list of cowsay templates that are 'safe' to use, set to an empty list if you want to enable all installed templates.
|
||||
;cowsay_enabled_stencils=bud-frogs, bunny, cheese, daemon, default, dragon, elephant-in-snake, elephant, eyes, hellokitty, kitty, luke-koala, meow, milk, moofasa, moose, ren, sheep, small, stegosaurus, stimpy, supermilker, three-eyes, turkey, turtle, tux, udder, vader-koala, vader, www
|
||||
|
||||
# (string) Specify a custom cowsay path or swap in your cowsay implementation of choice.
|
||||
;cowpath=
|
||||
|
||||
# (string) This allows you to choose a specific cowsay stencil for the banners or use 'random' to cycle through them.
|
||||
;cow_selection=default
|
||||
|
||||
# (boolean) This option forces color mode even when running without a TTY or the "nocolor" setting is True.
|
||||
force_color=True
|
||||
|
||||
# (path) The default root path for Ansible config files on the controller.
|
||||
;home=~/.ansible
|
||||
|
||||
# (boolean) This setting allows suppressing colorizing output, which is used to give a better indication of failure and status information.
|
||||
;nocolor=False
|
||||
|
||||
# (boolean) If you have cowsay installed but want to avoid the 'cows' (why????), use this.
|
||||
;nocows=False
|
||||
|
||||
# (boolean) Sets the default value for the any_errors_fatal keyword, if True, Task failures will be considered fatal errors.
|
||||
;any_errors_fatal=False
|
||||
|
||||
# (path) The password file to use for the become plugin. ``--become-password-file``.
|
||||
# If executable, it will be run and the resulting stdout will be used as the password.
|
||||
;become_password_file=
|
||||
|
||||
# (pathspec) Colon-separated paths in which Ansible will search for Become Plugins.
|
||||
;become_plugins=/Users/fabioisti/.ansible/plugins/become:/usr/share/ansible/plugins/become
|
||||
|
||||
# (string) Chooses which cache plugin to use, the default 'memory' is ephemeral.
|
||||
fact_caching=memory
|
||||
|
||||
# (string) Defines connection or path information for the cache plugin.
|
||||
;fact_caching_connection=
|
||||
|
||||
# (string) Prefix to use for cache plugin files/tables.
|
||||
;fact_caching_prefix=ansible_facts
|
||||
|
||||
# (integer) Expiration timeout for the cache plugin data.
|
||||
fact_caching_timeout=86400
|
||||
|
||||
# (list) List of enabled callbacks, not all callbacks need enabling, but many of those shipped with Ansible do as we don't want them activated by default.
|
||||
;callbacks_enabled=
|
||||
|
||||
# (string) When a collection is loaded that does not support the running Ansible version (with the collection metadata key `requires_ansible`).
|
||||
;collections_on_ansible_version_mismatch=warning
|
||||
|
||||
# (pathspec) Colon-separated paths in which Ansible will search for collections content. Collections must be in nested *subdirectories*, not directly in these directories. For example, if ``COLLECTIONS_PATHS`` includes ``'{{ ANSIBLE_HOME ~ "/collections" }}'``, and you want to add ``my.collection`` to that directory, it must be saved as ``'{{ ANSIBLE_HOME} ~ "/collections/ansible_collections/my/collection" }}'``.
|
||||
|
||||
;collections_path=/Users/fabioisti/.ansible/collections:/usr/share/ansible/collections
|
||||
|
||||
# (boolean) A boolean to enable or disable scanning the sys.path for installed collections.
|
||||
;collections_scan_sys_path=True
|
||||
|
||||
# (path) The password file to use for the connection plugin. ``--connection-password-file``.
|
||||
;connection_password_file=
|
||||
|
||||
# (pathspec) Colon-separated paths in which Ansible will search for Action Plugins.
|
||||
;action_plugins=/Users/fabioisti/.ansible/plugins/action:/usr/share/ansible/plugins/action
|
||||
|
||||
# (boolean) When enabled, this option allows lookup plugins (whether used in variables as ``{{lookup('foo')}}`` or as a loop as with_foo) to return data that is not marked 'unsafe'.
|
||||
# By default, such data is marked as unsafe to prevent the templating engine from evaluating any jinja2 templating language, as this could represent a security risk. This option is provided to allow for backward compatibility, however, users should first consider adding allow_unsafe=True to any lookups that may be expected to contain data that may be run through the templating engine late.
|
||||
;allow_unsafe_lookups=False
|
||||
|
||||
# (boolean) This controls whether an Ansible playbook should prompt for a login password. If using SSH keys for authentication, you probably do not need to change this setting.
|
||||
;ask_pass=False
|
||||
|
||||
# (boolean) This controls whether an Ansible playbook should prompt for a vault password.
|
||||
ask_vault_pass=True
|
||||
|
||||
# (pathspec) Colon-separated paths in which Ansible will search for Cache Plugins.
|
||||
;cache_plugins=/Users/fabioisti/.ansible/plugins/cache:/usr/share/ansible/plugins/cache
|
||||
|
||||
# (pathspec) Colon-separated paths in which Ansible will search for Callback Plugins.
|
||||
;callback_plugins=/Users/fabioisti/.ansible/plugins/callback:/usr/share/ansible/plugins/callback
|
||||
|
||||
# (pathspec) Colon-separated paths in which Ansible will search for Cliconf Plugins.
|
||||
;cliconf_plugins=/Users/fabioisti/.ansible/plugins/cliconf:/usr/share/ansible/plugins/cliconf
|
||||
|
||||
# (pathspec) Colon-separated paths in which Ansible will search for Connection Plugins.
|
||||
;connection_plugins=/Users/fabioisti/.ansible/plugins/connection:/usr/share/ansible/plugins/connection
|
||||
|
||||
# (boolean) Toggles debug output in Ansible. This is *very* verbose and can hinder multiprocessing. Debug output can also include secret information despite no_log settings being enabled, which means debug mode should not be used in production.
|
||||
;debug=False
|
||||
|
||||
# (string) This indicates the command to use to spawn a shell under, which is required for Ansible's execution needs on a target. Users may need to change this in rare instances when shell usage is constrained, but in most cases, it may be left as is.
|
||||
;executable=/bin/sh
|
||||
|
||||
# (pathspec) Colon-separated paths in which Ansible will search for Jinja2 Filter Plugins.
|
||||
;filter_plugins=/Users/fabioisti/.ansible/plugins/filter:/usr/share/ansible/plugins/filter
|
||||
|
||||
# (boolean) This option controls if notified handlers run on a host even if a failure occurs on that host.
|
||||
# When false, the handlers will not run if a failure has occurred on a host.
|
||||
# This can also be set per play or on the command line. See Handlers and Failure for more details.
|
||||
;force_handlers=False
|
||||
|
||||
# (integer) Maximum number of forks Ansible will use to execute tasks on target hosts.
|
||||
;forks=5
|
||||
|
||||
# (string) This setting controls the default policy of fact gathering (facts discovered about remote systems).
|
||||
# This option can be useful for those wishing to save fact gathering time. Both 'smart' and 'explicit' will use the cache plugin.
|
||||
;gathering=implicit
|
||||
|
||||
# (string) This setting controls how duplicate definitions of dictionary variables (aka hash, map, associative array) are handled in Ansible.
|
||||
# This does not affect variables whose values are scalars (integers, strings) or arrays.
|
||||
# **WARNING**, changing this setting is not recommended as this is fragile and makes your content (plays, roles, collections) nonportable, leading to continual confusion and misuse. Don't change this setting unless you think you have an absolute need for it.
|
||||
# We recommend avoiding reusing variable names and relying on the ``combine`` filter and ``vars`` and ``varnames`` lookups to create merged versions of the individual variables. In our experience, this is rarely needed and is a sign that too much complexity has been introduced into the data structures and plays.
|
||||
# For some uses you can also look into custom vars_plugins to merge on input, even substituting the default ``host_group_vars`` that is in charge of parsing the ``host_vars/`` and ``group_vars/`` directories. Most users of this setting are only interested in inventory scope, but the setting itself affects all sources and makes debugging even harder.
|
||||
# All playbooks and roles in the official examples repos assume the default for this setting.
|
||||
# Changing the setting to ``merge`` applies across variable sources, but many sources will internally still overwrite the variables. For example ``include_vars`` will dedupe variables internally before updating Ansible, with 'last defined' overwriting previous definitions in same file.
|
||||
# The Ansible project recommends you **avoid ``merge`` for new projects.**
|
||||
# It is the intention of the Ansible developers to eventually deprecate and remove this setting, but it is being kept as some users do heavily rely on it. New projects should **avoid 'merge'**.
|
||||
;hash_behaviour=replace
|
||||
|
||||
# (pathlist) Comma-separated list of Ansible inventory sources
|
||||
;inventory=/etc/ansible/hosts
|
||||
|
||||
# (pathspec) Colon-separated paths in which Ansible will search for HttpApi Plugins.
|
||||
;httpapi_plugins=/Users/fabioisti/.ansible/plugins/httpapi:/usr/share/ansible/plugins/httpapi
|
||||
|
||||
# (float) This sets the interval (in seconds) of Ansible internal processes polling each other. Lower values improve performance with large playbooks at the expense of extra CPU load. Higher values are more suitable for Ansible usage in automation scenarios when UI responsiveness is not required but CPU usage might be a concern.
|
||||
# The default corresponds to the value hardcoded in Ansible <= 2.1
|
||||
;internal_poll_interval=0.001
|
||||
|
||||
# (pathspec) Colon-separated paths in which Ansible will search for Inventory Plugins.
|
||||
;inventory_plugins=/Users/fabioisti/.ansible/plugins/inventory:/usr/share/ansible/plugins/inventory
|
||||
|
||||
# (string) This is a developer-specific feature that allows enabling additional Jinja2 extensions.
|
||||
# See the Jinja2 documentation for details. If you do not know what these do, you probably don't need to change this setting :)
|
||||
;jinja2_extensions=[]
|
||||
|
||||
# (boolean) This option preserves variable types during template operations.
|
||||
;jinja2_native=False
|
||||
|
||||
# (boolean) Enables/disables the cleaning up of the temporary files Ansible used to execute the tasks on the remote.
|
||||
# If this option is enabled it will disable ``ANSIBLE_PIPELINING``.
|
||||
;keep_remote_files=False
|
||||
|
||||
# (boolean) Controls whether callback plugins are loaded when running /usr/bin/ansible. This may be used to log activity from the command line, send notifications, and so on. Callback plugins are always loaded for ``ansible-playbook``.
|
||||
;bin_ansible_callbacks=False
|
||||
|
||||
# (tmppath) Temporary directory for Ansible to use on the controller.
|
||||
;local_tmp=/Users/fabioisti/.ansible/tmp
|
||||
|
||||
# (list) List of logger names to filter out of the log file.
|
||||
;log_filter=
|
||||
|
||||
# (path) File to which Ansible will log on the controller.
|
||||
# When not set the logging is disabled.
|
||||
;log_path=
|
||||
|
||||
# (pathspec) Colon-separated paths in which Ansible will search for Lookup Plugins.
|
||||
;lookup_plugins=/Users/fabioisti/.ansible/plugins/lookup:/usr/share/ansible/plugins/lookup
|
||||
|
||||
# (string) Sets the macro for the 'ansible_managed' variable available for :ref:`ansible_collections.ansible.builtin.template_module` and :ref:`ansible_collections.ansible.windows.win_template_module`. This is only relevant to those two modules.
|
||||
;ansible_managed=Ansible managed
|
||||
|
||||
# (string) This sets the default arguments to pass to the ``ansible`` adhoc binary if no ``-a`` is specified.
|
||||
;module_args=
|
||||
|
||||
# (string) Compression scheme to use when transferring Python modules to the target.
|
||||
;module_compression=ZIP_DEFLATED
|
||||
|
||||
# (string) Module to use with the ``ansible`` AdHoc command, if none is specified via ``-m``.
|
||||
;module_name=command
|
||||
|
||||
# (pathspec) Colon-separated paths in which Ansible will search for Modules.
|
||||
;library=/Users/fabioisti/.ansible/plugins/modules:/usr/share/ansible/plugins/modules
|
||||
|
||||
# (pathspec) Colon-separated paths in which Ansible will search for Module utils files, which are shared by modules.
|
||||
;module_utils=/Users/fabioisti/.ansible/plugins/module_utils:/usr/share/ansible/plugins/module_utils
|
||||
|
||||
# (pathspec) Colon-separated paths in which Ansible will search for Netconf Plugins.
|
||||
;netconf_plugins=/Users/fabioisti/.ansible/plugins/netconf:/usr/share/ansible/plugins/netconf
|
||||
|
||||
# (boolean) Toggle Ansible's display and logging of task details, mainly used to avoid security disclosures.
|
||||
;no_log=False
|
||||
|
||||
# (boolean) Toggle Ansible logging to syslog on the target when it executes tasks. On Windows hosts, this will disable a newer style PowerShell modules from writing to the event log.
|
||||
;no_target_syslog=False
|
||||
|
||||
# (raw) What templating should return as a 'null' value. When not set it will let Jinja2 decide.
|
||||
;null_representation=
|
||||
|
||||
# (integer) For asynchronous tasks in Ansible (covered in Asynchronous Actions and Polling), this is how often to check back on the status of those tasks when an explicit poll interval is not supplied. The default is a reasonably moderate 15 seconds which is a tradeoff between checking in frequently and providing a quick turnaround when something may have completed.
|
||||
;poll_interval=15
|
||||
|
||||
# (path) Option for connections using a certificate or key file to authenticate, rather than an agent or passwords, you can set the default value here to avoid re-specifying ``--private-key`` with every invocation.
|
||||
;private_key_file=
|
||||
|
||||
# (boolean) By default, imported roles publish their variables to the play and other roles, this setting can avoid that.
|
||||
# This was introduced as a way to reset role variables to default values if a role is used more than once in a playbook.
|
||||
# Starting in version '2.17' M(ansible.builtin.include_roles) and M(ansible.builtin.import_roles) can individually override this via the C(public) parameter.
|
||||
# Included roles only make their variables public at execution, unlike imported roles which happen at playbook compile time.
|
||||
;private_role_vars=False
|
||||
|
||||
# (integer) Port to use in remote connections, when blank it will use the connection plugin default.
|
||||
;remote_port=
|
||||
|
||||
# (string) Sets the login user for the target machines
|
||||
# When blank it uses the connection plugin's default, normally the user currently executing Ansible.
|
||||
;remote_user=
|
||||
|
||||
# (pathspec) Colon-separated paths in which Ansible will search for Roles.
|
||||
;roles_path=/Users/fabioisti/.ansible/roles:/usr/share/ansible/roles:/etc/ansible/roles
|
||||
|
||||
# (string) Set the main callback used to display Ansible output. You can only have one at a time.
|
||||
# You can have many other callbacks, but just one can be in charge of stdout.
|
||||
# See :ref:`callback_plugins` for a list of available options.
|
||||
;stdout_callback=default
|
||||
|
||||
# (string) Set the default strategy used for plays.
|
||||
;strategy=linear
|
||||
|
||||
# (pathspec) Colon-separated paths in which Ansible will search for Strategy Plugins.
|
||||
;strategy_plugins=/Users/fabioisti/.ansible/plugins/strategy:/usr/share/ansible/plugins/strategy
|
||||
|
||||
# (boolean) Toggle the use of "su" for tasks.
|
||||
;su=False
|
||||
|
||||
# (string) Syslog facility to use when Ansible logs to the remote target.
|
||||
;syslog_facility=LOG_USER
|
||||
|
||||
# (pathspec) Colon-separated paths in which Ansible will search for Terminal Plugins.
|
||||
;terminal_plugins=/Users/fabioisti/.ansible/plugins/terminal:/usr/share/ansible/plugins/terminal
|
||||
|
||||
# (pathspec) Colon-separated paths in which Ansible will search for Jinja2 Test Plugins.
|
||||
;test_plugins=/Users/fabioisti/.ansible/plugins/test:/usr/share/ansible/plugins/test
|
||||
|
||||
# (integer) This is the default timeout for connection plugins to use.
|
||||
;timeout=10
|
||||
|
||||
# (string) Can be any connection plugin available to your ansible installation.
|
||||
# There is also a (DEPRECATED) special 'smart' option, that will toggle between 'ssh' and 'paramiko' depending on controller OS and ssh versions.
|
||||
;transport=ssh
|
||||
|
||||
# (boolean) When True, this causes ansible templating to fail steps that reference variable names that are likely typoed.
|
||||
# Otherwise, any '{{ template_expression }}' that contains undefined variables will be rendered in a template or ansible action line exactly as written.
|
||||
;error_on_undefined_vars=True
|
||||
|
||||
# (pathspec) Colon-separated paths in which Ansible will search for Vars Plugins.
|
||||
;vars_plugins=/Users/fabioisti/.ansible/plugins/vars:/usr/share/ansible/plugins/vars
|
||||
|
||||
# (string) The vault_id to use for encrypting by default. If multiple vault_ids are provided, this specifies which to use for encryption. The ``--encrypt-vault-id`` CLI option overrides the configured value.
|
||||
;vault_encrypt_identity=
|
||||
|
||||
# (string) The label to use for the default vault id label in cases where a vault id label is not provided.
|
||||
;vault_identity=default
|
||||
|
||||
# (list) A list of vault-ids to use by default. Equivalent to multiple ``--vault-id`` args. Vault-ids are tried in order.
|
||||
;vault_identity_list=
|
||||
|
||||
# (string) If true, decrypting vaults with a vault id will only try the password from the matching vault-id.
|
||||
;vault_id_match=False
|
||||
|
||||
# (path) The vault password file to use. Equivalent to ``--vault-password-file`` or ``--vault-id``.
|
||||
# If executable, it will be run and the resulting stdout will be used as the password.
|
||||
;vault_password_file=
|
||||
|
||||
# (integer) Sets the default verbosity, equivalent to the number of ``-v`` passed in the command line.
|
||||
;verbosity=0
|
||||
|
||||
# (boolean) Toggle to control the showing of deprecation warnings
|
||||
;deprecation_warnings=True
|
||||
|
||||
# (boolean) Toggle to control showing warnings related to running devel.
|
||||
;devel_warning=True
|
||||
|
||||
# (boolean) Normally ``ansible-playbook`` will print a header for each task that is run. These headers will contain the name: field from the task if you specified one. If you didn't then ``ansible-playbook`` uses the task's action to help you tell which task is presently running. Sometimes you run many of the same action and so you want more information about the task to differentiate it from others of the same action. If you set this variable to True in the config then ``ansible-playbook`` will also include the task's arguments in the header.
|
||||
# This setting defaults to False because there is a chance that you have sensitive values in your parameters and you do not want those to be printed.
|
||||
# If you set this to True you should be sure that you have secured your environment's stdout (no one can shoulder surf your screen and you aren't saving stdout to an insecure file) or made sure that all of your playbooks explicitly added the ``no_log: True`` parameter to tasks that have sensitive values :ref:`keep_secret_data` for more information.
|
||||
;display_args_to_stdout=False
|
||||
|
||||
# (boolean) Toggle to control displaying skipped task/host entries in a task in the default callback.
|
||||
;display_skipped_hosts=True
|
||||
|
||||
# (string) Root docsite URL used to generate docs URLs in warning/error text; must be an absolute URL with a valid scheme and trailing slash.
|
||||
;docsite_root_url=https://docs.ansible.com/ansible-core/
|
||||
|
||||
# (pathspec) Colon-separated paths in which Ansible will search for Documentation Fragments Plugins.
|
||||
;doc_fragment_plugins=/Users/fabioisti/.ansible/plugins/doc_fragments:/usr/share/ansible/plugins/doc_fragments
|
||||
|
||||
# (string) By default, Ansible will issue a warning when a duplicate dict key is encountered in YAML.
|
||||
# These warnings can be silenced by adjusting this setting to False.
|
||||
;duplicate_dict_key=warn
|
||||
|
||||
# (string) for the cases in which Ansible needs to return a file within an editor, this chooses the application to use.
|
||||
;editor=vi
|
||||
|
||||
# (boolean) Whether or not to enable the task debugger, this previously was done as a strategy plugin.
|
||||
# Now all strategy plugins can inherit this behavior. The debugger defaults to activating when
|
||||
# a task is failed on unreachable. Use the debugger keyword for more flexibility.
|
||||
;enable_task_debugger=False
|
||||
|
||||
# (boolean) Toggle to allow missing handlers to become a warning instead of an error when notifying.
|
||||
;error_on_missing_handler=True
|
||||
|
||||
# (list) Which modules to run during a play's fact gathering stage, using the default of 'smart' will try to figure it out based on connection type.
|
||||
# If adding your own modules but you still want to use the default Ansible facts, you will want to include 'setup' or corresponding network module to the list (if you add 'smart', Ansible will also figure it out).
|
||||
# This does not affect explicit calls to the 'setup' module, but does always affect the 'gather_facts' action (implicit or explicit).
|
||||
facts_modules=smart
|
||||
|
||||
# (boolean) Set this to "False" if you want to avoid host key checking by the underlying connection plugin Ansible uses to connect to the host.
|
||||
# Please read the documentation of the specific connection plugin used for details.
|
||||
host_key_checking=False
|
||||
|
||||
# (boolean) Facts are available inside the `ansible_facts` variable, this setting also pushes them as their own vars in the main namespace.
|
||||
# Unlike inside the `ansible_facts` dictionary where the prefix `ansible_` is removed from fact names, these will have the exact names that are returned by the module.
|
||||
;inject_facts_as_vars=True
|
||||
|
||||
# (string) Path to the Python interpreter to be used for module execution on remote targets, or an automatic discovery mode. Supported discovery modes are ``auto`` (the default), ``auto_silent``, ``auto_legacy``, and ``auto_legacy_silent``. All discovery modes employ a lookup table to use the included system Python (on distributions known to include one), falling back to a fixed ordered list of well-known Python interpreter locations if a platform-specific default is not available. The fallback behavior will issue a warning that the interpreter should be set explicitly (since interpreters installed later may change which one is used). This warning behavior can be disabled by setting ``auto_silent`` or ``auto_legacy_silent``. The value of ``auto_legacy`` provides all the same behavior, but for backward-compatibility with older Ansible releases that always defaulted to ``/usr/bin/python``, will use that interpreter if present.
|
||||
interpreter_python=auto_silent
|
||||
|
||||
# (boolean) If 'false', invalid attributes for a task will result in warnings instead of errors.
|
||||
;invalid_task_attribute_failed=True
|
||||
|
||||
# (boolean) By default, Ansible will issue a warning when there are no hosts in the inventory.
|
||||
# These warnings can be silenced by adjusting this setting to False.
|
||||
;localhost_warning=True
|
||||
|
||||
# (int) This will set log verbosity if higher than the normal display verbosity, otherwise it will match that.
|
||||
;log_verbosity=
|
||||
|
||||
# (int) Maximum size of files to be considered for diff display.
|
||||
;max_diff_size=104448
|
||||
|
||||
# (list) List of extensions to ignore when looking for modules to load.
|
||||
# This is for rejecting script and binary module fallback extensions.
|
||||
;module_ignore_exts=.pyc, .pyo, .swp, .bak, ~, .rpm, .md, .txt, .rst, .yaml, .yml, .ini
|
||||
|
||||
# (bool) Enables whether module responses are evaluated for containing non-UTF-8 data.
|
||||
# Disabling this may result in unexpected behavior.
|
||||
# Only ansible-core should evaluate this configuration.
|
||||
;module_strict_utf8_response=True
|
||||
|
||||
# (list) TODO: write it
|
||||
;network_group_modules=eos, nxos, ios, iosxr, junos, enos, ce, vyos, sros, dellos9, dellos10, dellos6, asa, aruba, aireos, bigip, ironware, onyx, netconf, exos, voss, slxos
|
||||
|
||||
# (boolean) Previously Ansible would only clear some of the plugin loading caches when loading new roles, this led to some behaviors in which a plugin loaded in previous plays would be unexpectedly 'sticky'. This setting allows the user to return to that behavior.
|
||||
;old_plugin_cache_clear=False
|
||||
|
||||
# (string) for the cases in which Ansible needs to return output in a pageable fashion, this chooses the application to use.
|
||||
;pager=less
|
||||
|
||||
# (path) A number of non-playbook CLIs have a ``--playbook-dir`` argument; this sets the default value for it.
|
||||
;playbook_dir=
|
||||
|
||||
# (string) This sets which playbook dirs will be used as a root to process vars plugins, which includes finding host_vars/group_vars.
|
||||
;playbook_vars_root=top
|
||||
|
||||
# (path) A path to configuration for filtering which plugins installed on the system are allowed to be used.
|
||||
# See :ref:`plugin_filtering_config` for details of the filter file's format.
|
||||
# The default is /etc/ansible/plugin_filters.yml
|
||||
;plugin_filters_cfg=
|
||||
|
||||
# (string) Attempts to set RLIMIT_NOFILE soft limit to the specified value when executing Python modules (can speed up subprocess usage on Python 2.x. See https://bugs.python.org/issue11284). The value will be limited by the existing hard limit. Default value of 0 does not attempt to adjust existing system-defined limits.
|
||||
;python_module_rlimit_nofile=0
|
||||
|
||||
# (bool) This controls whether a failed Ansible playbook should create a .retry file.
|
||||
;retry_files_enabled=False
|
||||
|
||||
# (path) This sets the path in which Ansible will save .retry files when a playbook fails and retry files are enabled.
|
||||
# This file will be overwritten after each run with the list of failed hosts from all plays.
|
||||
;retry_files_save_path=
|
||||
|
||||
# (str) This setting can be used to optimize vars_plugin usage depending on the user's inventory size and play selection.
|
||||
;run_vars_plugins=demand
|
||||
|
||||
# (bool) This adds the custom stats set via the set_stats plugin to the default output.
|
||||
;show_custom_stats=False
|
||||
|
||||
# (string) Action to take when a module parameter value is converted to a string (this does not affect variables). For string parameters, values such as '1.00', "['a', 'b',]", and 'yes', 'y', etc. will be converted by the YAML parser unless fully quoted.
|
||||
# Valid options are 'error', 'warn', and 'ignore'.
|
||||
# Since 2.8, this option defaults to 'warn' but will change to 'error' in 2.12.
|
||||
;string_conversion_action=warn
|
||||
|
||||
# (boolean) Allows disabling of warnings related to potential issues on the system running Ansible itself (not on the managed hosts).
|
||||
# These may include warnings about third-party packages or other conditions that should be resolved if possible.
|
||||
;system_warnings=True
|
||||
|
||||
# (string) A string to insert into target logging for tracking purposes
|
||||
;target_log_info=
|
||||
|
||||
# (boolean) This option defines whether the task debugger will be invoked on a failed task when ignore_errors=True is specified.
|
||||
# True specifies that the debugger will honor ignore_errors, and False will not honor ignore_errors.
|
||||
;task_debugger_ignore_errors=True
|
||||
|
||||
# (integer) Set the maximum time (in seconds) for a task action to execute in.
|
||||
# Timeout runs independently from templating or looping. It applies per each attempt of executing the task's action and remains unchanged by the total time spent on a task.
|
||||
# When the action execution exceeds the timeout, Ansible interrupts the process. This is registered as a failure due to outside circumstances, not a task failure, to receive appropriate response and recovery process.
|
||||
# If set to 0 (the default) there is no timeout.
|
||||
;task_timeout=0
|
||||
|
||||
# (string) Make ansible transform invalid characters in group names supplied by inventory sources.
|
||||
;force_valid_group_names=never
|
||||
|
||||
# (boolean) Toggles the use of persistence for connections.
|
||||
;use_persistent_connections=False
|
||||
|
||||
# (bool) A toggle to disable validating a collection's 'metadata' entry for a module_defaults action group. Metadata containing unexpected fields or value types will produce a warning when this is True.
|
||||
;validate_action_group_metadata=True
|
||||
|
||||
# (list) Accept list for variable plugins that require it.
|
||||
;vars_plugins_enabled=host_group_vars
|
||||
|
||||
# (list) Allows to change the group variable precedence merge order.
|
||||
;precedence=all_inventory, groups_inventory, all_plugins_inventory, all_plugins_play, groups_plugins_inventory, groups_plugins_play
|
||||
|
||||
# (string) The salt to use for the vault encryption. If it is not provided, a random salt will be used.
|
||||
;vault_encrypt_salt=
|
||||
|
||||
# (bool) Force 'verbose' option to use stderr instead of stdout
|
||||
;verbose_to_stderr=False
|
||||
|
||||
# (integer) For asynchronous tasks in Ansible (covered in Asynchronous Actions and Polling), this is how long, in seconds, to wait for the task spawned by Ansible to connect back to the named pipe used on Windows systems. The default is 5 seconds. This can be too low on slower systems, or systems under heavy load.
|
||||
# This is not the total time an async command can run for, but is a separate timeout to wait for an async command to start. The task will only start to be timed against its async_timeout once it has connected to the pipe, so the overall maximum duration the task can take will be extended by the amount specified here.
|
||||
;win_async_startup_timeout=5
|
||||
|
||||
# (list) Check all of these extensions when looking for 'variable' files which should be YAML or JSON or vaulted versions of these.
|
||||
# This affects vars_files, include_vars, inventory and vars plugins among others.
|
||||
;yaml_valid_extensions=.yml, .yaml, .json
|
||||
|
||||
|
||||
[privilege_escalation]
|
||||
# (boolean) Display an agnostic become prompt instead of displaying a prompt containing the command line supplied become method.
|
||||
;agnostic_become_prompt=True
|
||||
|
||||
# (boolean) When ``False``(default), Ansible will skip using become if the remote user is the same as the become user, as this is normally a redundant operation. In other words root sudo to root.
|
||||
# If ``True``, this forces Ansible to use the become plugin anyways as there are cases in which this is needed.
|
||||
;become_allow_same_user=False
|
||||
|
||||
# (boolean) Toggles the use of privilege escalation, allowing you to 'become' another user after login.
|
||||
;become=False
|
||||
|
||||
# (boolean) Toggle to prompt for privilege escalation password.
|
||||
;become_ask_pass=False
|
||||
|
||||
# (string) executable to use for privilege escalation, otherwise Ansible will depend on PATH.
|
||||
;become_exe=
|
||||
|
||||
# (string) Flags to pass to the privilege escalation executable.
|
||||
;become_flags=
|
||||
|
||||
# (string) Privilege escalation method to use when `become` is enabled.
|
||||
;become_method=sudo
|
||||
|
||||
# (string) The user your login/remote user 'becomes' when using privilege escalation, most systems will use 'root' when no user is specified.
|
||||
;become_user=root
|
||||
|
||||
|
||||
[persistent_connection]
|
||||
# (path) Specify where to look for the ansible-connection script. This location will be checked before searching $PATH.
|
||||
# If null, ansible will start with the same directory as the ansible script.
|
||||
;ansible_connection_path=
|
||||
|
||||
# (int) This controls the amount of time to wait for a response from a remote device before timing out a persistent connection.
|
||||
;command_timeout=30
|
||||
|
||||
# (integer) This controls the retry timeout for persistent connection to connect to the local domain socket.
|
||||
;connect_retry_timeout=15
|
||||
|
||||
# (integer) This controls how long the persistent connection will remain idle before it is destroyed.
|
||||
;connect_timeout=30
|
||||
|
||||
# (path) Path to the socket to be used by the connection persistence system.
|
||||
;control_path_dir=/Users/fabioisti/.ansible/pc
|
||||
|
||||
|
||||
[connection]
|
||||
# (boolean) This is a global option, each connection plugin can override either by having more specific options or not supporting pipelining at all.
|
||||
# Pipelining, if supported by the connection plugin, reduces the number of network operations required to execute a module on the remote server, by executing many Ansible modules without actual file transfer.
|
||||
# It can result in a very significant performance improvement when enabled.
|
||||
# However this conflicts with privilege escalation (become). For example, when using 'sudo:' operations you must first disable 'requiretty' in /etc/sudoers on all managed hosts, which is why it is disabled by default.
|
||||
# This setting will be disabled if ``ANSIBLE_KEEP_REMOTE_FILES`` is enabled.
|
||||
;pipelining=False
|
||||
|
||||
|
||||
[colors]
|
||||
# (string) Defines the color to use on 'Changed' task status.
|
||||
;changed=yellow
|
||||
|
||||
# (string) Defines the default color to use for ansible-console.
|
||||
;console_prompt=white
|
||||
|
||||
# (string) Defines the color to use when emitting debug messages.
|
||||
;debug=dark gray
|
||||
|
||||
# (string) Defines the color to use when emitting deprecation messages.
|
||||
;deprecate=purple
|
||||
|
||||
# (string) Defines the color to use when showing added lines in diffs.
|
||||
;diff_add=green
|
||||
|
||||
# (string) Defines the color to use when showing diffs.
|
||||
;diff_lines=cyan
|
||||
|
||||
# (string) Defines the color to use when showing removed lines in diffs.
|
||||
;diff_remove=red
|
||||
|
||||
# (string) Defines the color to use when emitting a constant in the ansible-doc output.
|
||||
;doc_constant=dark gray
|
||||
|
||||
# (string) Defines the color to use when emitting a deprecated value in the ansible-doc output.
|
||||
;doc_deprecated=magenta
|
||||
|
||||
# (string) Defines the color to use when emitting a link in the ansible-doc output.
|
||||
;doc_link=cyan
|
||||
|
||||
# (string) Defines the color to use when emitting a module name in the ansible-doc output.
|
||||
;doc_module=yellow
|
||||
|
||||
# (string) Defines the color to use when emitting a plugin name in the ansible-doc output.
|
||||
;doc_plugin=yellow
|
||||
|
||||
# (string) Defines the color to use when emitting cross-reference in the ansible-doc output.
|
||||
;doc_reference=magenta
|
||||
|
||||
# (string) Defines the color to use when emitting error messages.
|
||||
;error=red
|
||||
|
||||
# (string) Defines the color to use for highlighting.
|
||||
;highlight=white
|
||||
|
||||
# (string) Defines the color to use when showing 'Included' task status.
|
||||
;included=cyan
|
||||
|
||||
# (string) Defines the color to use when showing 'OK' task status.
|
||||
;ok=green
|
||||
|
||||
# (string) Defines the color to use when showing 'Skipped' task status.
|
||||
;skip=cyan
|
||||
|
||||
# (string) Defines the color to use on 'Unreachable' status.
|
||||
;unreachable=bright red
|
||||
|
||||
# (string) Defines the color to use when emitting verbose messages. In other words, those that show with '-v's.
|
||||
;verbose=blue
|
||||
|
||||
# (string) Defines the color to use when emitting warning messages.
|
||||
;warn=bright purple
|
||||
|
||||
|
||||
[selinux]
|
||||
# (boolean) This setting causes libvirt to connect to LXC containers by passing ``--noseclabel`` parameter to ``virsh`` command. This is necessary when running on systems which do not have SELinux.
|
||||
;libvirt_lxc_noseclabel=False
|
||||
|
||||
# (list) Some filesystems do not support safe operations and/or return inconsistent errors, this setting makes Ansible 'tolerate' those in the list without causing fatal errors.
|
||||
# Data corruption may occur and writes are not always verified when a filesystem is in the list.
|
||||
;special_context_filesystems=fuse, nfs, vboxsf, ramfs, 9p, vfat
|
||||
|
||||
|
||||
[diff]
|
||||
# (bool) Configuration toggle to tell modules to show differences when in 'changed' status, equivalent to ``--diff``.
|
||||
;always=False
|
||||
|
||||
# (integer) Number of lines of context to show when displaying the differences between files.
|
||||
;context=3
|
||||
|
||||
|
||||
[galaxy]
|
||||
# (path) The directory that stores cached responses from a Galaxy server.
|
||||
# This is only used by the ``ansible-galaxy collection install`` and ``download`` commands.
|
||||
# Cache files inside this dir will be ignored if they are world writable.
|
||||
;cache_dir=/Users/fabioisti/.ansible/galaxy_cache
|
||||
|
||||
# (bool) whether ``ansible-galaxy collection install`` should warn about ``--collections-path`` missing from configured :ref:`collections_paths`.
|
||||
;collections_path_warning=True
|
||||
|
||||
# (path) Collection skeleton directory to use as a template for the ``init`` action in ``ansible-galaxy collection``, same as ``--collection-skeleton``.
|
||||
;collection_skeleton=
|
||||
|
||||
# (list) patterns of files to ignore inside a Galaxy collection skeleton directory.
|
||||
;collection_skeleton_ignore=^.git$, ^.*/.git_keep$
|
||||
|
||||
# (bool) Disable GPG signature verification during collection installation.
|
||||
;disable_gpg_verify=False
|
||||
|
||||
# (bool) Some steps in ``ansible-galaxy`` display a progress wheel which can cause issues on certain displays or when outputting the stdout to a file.
|
||||
# This config option controls whether the display wheel is shown or not.
|
||||
# The default is to show the display wheel if stdout has a tty.
|
||||
;display_progress=
|
||||
|
||||
# (path) Configure the keyring used for GPG signature verification during collection installation and verification.
|
||||
;gpg_keyring=
|
||||
|
||||
# (boolean) If set to yes, ansible-galaxy will not validate TLS certificates. This can be useful for testing against a server with a self-signed certificate.
|
||||
;ignore_certs=
|
||||
|
||||
# (list) A list of GPG status codes to ignore during GPG signature verification. See L(https://github.com/gpg/gnupg/blob/master/doc/DETAILS#general-status-codes) for status code descriptions.
|
||||
# If fewer signatures successfully verify the collection than `GALAXY_REQUIRED_VALID_SIGNATURE_COUNT`, signature verification will fail even if all error codes are ignored.
|
||||
;ignore_signature_status_codes=
|
||||
|
||||
# (str) The number of signatures that must be successful during GPG signature verification while installing or verifying collections.
|
||||
# This should be a positive integer or all to indicate all signatures must successfully validate the collection.
|
||||
# Prepend + to the value to fail if no valid signatures are found for the collection.
|
||||
;required_valid_signature_count=1
|
||||
|
||||
# (path) Role skeleton directory to use as a template for the ``init`` action in ``ansible-galaxy``/``ansible-galaxy role``, same as ``--role-skeleton``.
|
||||
;role_skeleton=
|
||||
|
||||
# (list) patterns of files to ignore inside a Galaxy role or collection skeleton directory.
|
||||
;role_skeleton_ignore=^.git$, ^.*/.git_keep$
|
||||
|
||||
# (string) URL to prepend when roles don't specify the full URI, assume they are referencing this server as the source.
|
||||
;server=https://galaxy.ansible.com
|
||||
|
||||
# (list) A list of Galaxy servers to use when installing a collection.
|
||||
# The value corresponds to the config ini header ``[galaxy_server.{{item}}]`` which defines the server details.
|
||||
# See :ref:`galaxy_server_config` for more details on how to define a Galaxy server.
|
||||
# The order of servers in this list is used as the order in which a collection is resolved.
|
||||
# Setting this config option will ignore the :ref:`galaxy_server` config option.
|
||||
;server_list=
|
||||
|
||||
# (int) The default timeout for Galaxy API calls. Galaxy servers that don't configure a specific timeout will fall back to this value.
|
||||
;server_timeout=60
|
||||
|
||||
# (path) Local path to galaxy access token file
|
||||
;token_path=/Users/fabioisti/.ansible/galaxy_token
|
||||
|
||||
|
||||
[inventory]
|
||||
# (string) This setting changes the behaviour of mismatched host patterns, it allows you to force a fatal error, a warning or just ignore it.
|
||||
;host_pattern_mismatch=warning
|
||||
|
||||
# (boolean) If 'true', it is a fatal error when any given inventory source cannot be successfully parsed by any available inventory plugin; otherwise, this situation only attracts a warning.
|
||||
|
||||
;any_unparsed_is_failed=False
|
||||
|
||||
# (bool) Toggle to turn on inventory caching.
|
||||
# This setting has been moved to the individual inventory plugins as a plugin option :ref:`inventory_plugins`.
|
||||
# The existing configuration settings are still accepted with the inventory plugin adding additional options from inventory configuration.
|
||||
# This message will be removed in 2.16.
|
||||
;cache=False
|
||||
|
||||
# (string) The plugin for caching inventory.
|
||||
# This setting has been moved to the individual inventory plugins as a plugin option :ref:`inventory_plugins`.
|
||||
# The existing configuration settings are still accepted with the inventory plugin adding additional options from inventory and fact cache configuration.
|
||||
# This message will be removed in 2.16.
|
||||
;cache_plugin=
|
||||
|
||||
# (string) The inventory cache connection.
|
||||
# This setting has been moved to the individual inventory plugins as a plugin option :ref:`inventory_plugins`.
|
||||
# The existing configuration settings are still accepted with the inventory plugin adding additional options from inventory and fact cache configuration.
|
||||
# This message will be removed in 2.16.
|
||||
;cache_connection=
|
||||
|
||||
# (string) The table prefix for the cache plugin.
|
||||
# This setting has been moved to the individual inventory plugins as a plugin option :ref:`inventory_plugins`.
|
||||
# The existing configuration settings are still accepted with the inventory plugin adding additional options from inventory and fact cache configuration.
|
||||
# This message will be removed in 2.16.
|
||||
;cache_prefix=ansible_inventory_
|
||||
|
||||
# (string) Expiration timeout for the inventory cache plugin data.
|
||||
# This setting has been moved to the individual inventory plugins as a plugin option :ref:`inventory_plugins`.
|
||||
# The existing configuration settings are still accepted with the inventory plugin adding additional options from inventory and fact cache configuration.
|
||||
# This message will be removed in 2.16.
|
||||
;cache_timeout=3600
|
||||
|
||||
# (list) List of enabled inventory plugins, it also determines the order in which they are used.
|
||||
;enable_plugins=host_list, script, auto, yaml, ini, toml
|
||||
|
||||
# (bool) Controls if ansible-inventory will accurately reflect Ansible's view into inventory or its optimized for exporting.
|
||||
;export=False
|
||||
|
||||
# (list) List of extensions to ignore when using a directory as an inventory source.
|
||||
;ignore_extensions=.pyc, .pyo, .swp, .bak, ~, .rpm, .md, .txt, .rst, .orig, .ini, .cfg, .retry
|
||||
|
||||
# (list) List of patterns to ignore when using a directory as an inventory source.
|
||||
;ignore_patterns=
|
||||
|
||||
# (bool) If 'true' it is a fatal error if every single potential inventory source fails to parse, otherwise, this situation will only attract a warning.
|
||||
|
||||
;unparsed_is_failed=False
|
||||
|
||||
# (boolean) By default, Ansible will issue a warning when no inventory was loaded and notes that it will use an implicit localhost-only inventory.
|
||||
# These warnings can be silenced by adjusting this setting to False.
|
||||
;inventory_unparsed_warning=True
|
||||
|
||||
|
||||
[netconf_connection]
|
||||
# (string) This variable is used to enable bastion/jump host with netconf connection. If set to True the bastion/jump host ssh settings should be present in ~/.ssh/config file, alternatively it can be set to custom ssh configuration file path to read the bastion/jump host settings.
|
||||
;ssh_config=
|
||||
|
||||
|
||||
[paramiko_connection]
|
||||
# (boolean) TODO: write it
|
||||
;host_key_auto_add=False
|
||||
|
||||
# (boolean) TODO: write it
|
||||
;look_for_keys=True
|
||||
|
||||
|
||||
[jinja2]
|
||||
# (list) This list of filters avoids 'type conversion' when templating variables.
|
||||
# Useful when you want to avoid conversion into lists or dictionaries for JSON strings, for example.
|
||||
;dont_type_filters=string, to_json, to_nice_json, to_yaml, to_nice_yaml, ppretty, json
|
||||
|
||||
|
||||
[tags]
|
||||
# (list) default list of tags to run in your plays, Skip Tags has precedence.
|
||||
;run=
|
||||
|
||||
# (list) default list of tags to skip in your plays, has precedence over Run Tags
|
||||
;skip=
|
||||
|
||||
|
|
@ -0,0 +1,13 @@
|
|||
externals:
|
||||
children:
|
||||
rup_tests:
|
||||
hosts:
|
||||
liquid:
|
||||
ansible_host: 146.48.108.15
|
||||
nextrup_copy_test:
|
||||
ansible_host: 146.48.108.16
|
||||
misc_tests:
|
||||
hosts:
|
||||
bigbrain:
|
||||
ansible_host: 146.48.108.14
|
||||
|
||||
|
|
@ -0,0 +1,2 @@
|
|||
ansible_user: ansible
|
||||
ansible_password: "{{ ansible_crypted_password }}"
|
||||
|
|
@ -0,0 +1,7 @@
|
|||
$ANSIBLE_VAULT;1.1;AES256
|
||||
37333066623836633836613066346434626134336537663236396639346235386362336637376534
|
||||
3833636230313835326663306236333837343337393530390a636464393562346662613838343738
|
||||
39356439343862633937313539323661303866316164343830363431626435396636386366376263
|
||||
6536393735363663650a383461666230633838303436643837636562343366313235393264666462
|
||||
38643366653861666364363538333230656539663134646566666664626463343433613166393337
|
||||
3432333863646664336262353262333635323436326430376465
|
||||
|
|
@ -0,0 +1,2 @@
|
|||
---
|
||||
ansible_user: clouseau
|
||||
|
|
@ -0,0 +1,8 @@
|
|||
$ANSIBLE_VAULT;1.1;AES256
|
||||
32653362346631356539383863653761626165383165653839343965636363623637396138346163
|
||||
3239313335343263343265633966353230323663373664640a346234373733303139303139613962
|
||||
36316132363366376436353936653930326235303937623762636438313138636238613136303930
|
||||
3866303033613561630a666534326237363162656461336632623966653132656361333565356136
|
||||
37666536323434323934353362383363643561306136656339663666643764626565666264373761
|
||||
64306334323632326665386431323965653034393162373331313339653736346136313736626565
|
||||
663230663364393634306438616133623665
|
||||
|
|
@ -0,0 +1,37 @@
|
|||
main_lab_hosts:
|
||||
children:
|
||||
lan:
|
||||
hosts:
|
||||
edge.home.arpa:
|
||||
inspector.home.arpa:
|
||||
god.home.arpa:
|
||||
swarm:
|
||||
children:
|
||||
enabling:
|
||||
hosts:
|
||||
enabling[1:3].home.arpa:
|
||||
swarm_master: true
|
||||
swarm_drain: false
|
||||
vars:
|
||||
swarm_name: enabling
|
||||
swarm1:
|
||||
hosts:
|
||||
swarm1m[1:3].home.arpa:
|
||||
swarm_master: true
|
||||
swarm1w[1:4].home.arpa:
|
||||
vars:
|
||||
swarm_name: the_swarm
|
||||
cluster:
|
||||
hosts:
|
||||
worker[1:3].home.arpa:
|
||||
cl1m1.home.arpa:
|
||||
front:
|
||||
hosts:
|
||||
main_lab_edge:
|
||||
ansible_host: 146.48.108.5
|
||||
operators:
|
||||
children:
|
||||
lan:
|
||||
enabling:
|
||||
|
||||
|
||||
|
|
@ -0,0 +1,11 @@
|
|||
prouction_hosts:
|
||||
children:
|
||||
public_access:
|
||||
hosts:
|
||||
#cloud.reterup.it:
|
||||
#ansible_host: 146.48.108.17
|
||||
backups:
|
||||
ansible_host: 146.48.108.12
|
||||
ftp_server:
|
||||
hosts:
|
||||
backups:
|
||||
|
|
@ -0,0 +1,6 @@
|
|||
prox1_lab_hosts:
|
||||
children:
|
||||
front:
|
||||
hosts:
|
||||
prox1_lab_edge:
|
||||
ansible_host: 146.48.108.11
|
||||
|
|
@ -0,0 +1,39 @@
|
|||
- hosts: all
|
||||
become: yes
|
||||
debugger: on_failed
|
||||
tasks:
|
||||
- name: Add the ansible group
|
||||
group:
|
||||
name: ansible
|
||||
gid: 1100
|
||||
state: present
|
||||
|
||||
- name: Add the ansible user as a system user
|
||||
user:
|
||||
name: ansible
|
||||
uid: 1100
|
||||
group: ansible
|
||||
# Directly generate hash
|
||||
# https://www.lisenet.com/2019/ansible-generate-crypted-passwords-for-the-user-module/
|
||||
password: "{{ ansible_crypted_password | password_hash('sha512') }}"
|
||||
shell: /bin/bash
|
||||
# Uncomment to prevent password reset
|
||||
# update_password: on_create
|
||||
system: yes
|
||||
home: /srv/ansible
|
||||
state: present
|
||||
|
||||
- name: Set ansible user as sudoer
|
||||
copy:
|
||||
content: "ansible ALL = (ALL) NOPASSWD:ALL"
|
||||
dest: /etc/sudoers.d/ansible
|
||||
owner: root
|
||||
group: root
|
||||
mode: 0440
|
||||
|
||||
- name: Create the .ssh directory
|
||||
file: path=/srv/ansible/.ssh owner=ansible group=ansible mode=0700 state=directory
|
||||
|
||||
- name: Add the mandatory ssh keys to the ansible user
|
||||
template: src=library/templates/ansible_auth_keys.j2 dest=/srv/ansible/.ssh/authorized_keys owner=ansible group=ansible mode=0600
|
||||
|
||||
|
|
@ -0,0 +1,68 @@
|
|||
---
|
||||
# play 1 - local
|
||||
# check config info from inventory
|
||||
|
||||
|
||||
|
||||
# play 2
|
||||
# gather status
|
||||
|
||||
# play 3
|
||||
# bootstrap
|
||||
|
||||
# play 4
|
||||
# join
|
||||
|
||||
- name: Tests
|
||||
hosts: swarm
|
||||
connection: local
|
||||
gather_facts: no
|
||||
|
||||
vars:
|
||||
swarm_list: {}
|
||||
|
||||
tasks:
|
||||
- debug: var=hostvars
|
||||
|
||||
- name: Gather Swarm info
|
||||
set_fact:
|
||||
swarm_list: "{{swarm_list + hostvars[hostname]['swarm_name']}}"
|
||||
|
||||
- debug: var=swarm_list
|
||||
|
||||
|
||||
# # show all the hosts in the inventory
|
||||
# - debug:
|
||||
# msg: "{{ item }}"
|
||||
# loop: "{{ groups['all'] }}"
|
||||
|
||||
# - name: printsomthieng
|
||||
# debug:
|
||||
# msg: "{{ item }}"
|
||||
# with_items: "{{ play_hosts }}"
|
||||
# #run_once: true
|
||||
|
||||
|
||||
|
||||
# debug:
|
||||
# msg:
|
||||
# # - "{{ item }}"
|
||||
# - "{{hostvars[item]['swarm_master']}}"
|
||||
# #loop: "{{ hosts.items() | list }}"
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
# - name: Create swarm_<SWARM>_<MASTER|WORKER>_<OPERATIONAL|BOOTSTRAP> groups
|
||||
# add_host:
|
||||
# hostname: "{{ item }}"
|
||||
# groups: "swarm_{{item}}manager_operational"
|
||||
# with_items: "{{ play_hosts }}"
|
||||
# run_once: true
|
||||
|
||||
# - name: Display
|
||||
# command: echo "swarm_{{item}}manager_operational"
|
||||
|
|
@ -0,0 +1,5 @@
|
|||
---
|
||||
- name: Install FTP Server
|
||||
hosts: ftp_server
|
||||
roles:
|
||||
- robgmills.pure-ftpd
|
||||
|
|
@ -0,0 +1 @@
|
|||
ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEArNhKFcJ6T08sn7kTTLf+rO9HEvgOvqfhv5HQ2sRf2tFYfjfCb0zHKnMkgW+sy5gMU10Lyx1r7juXCvqRC955uIM97m1B1Xc6sVqASVKuGPhCKfhxEaMAyBcWFdE+HYbCOPYVN+JMrcwWfbblwiZTtK1OCqaEUvDDI7cFeU68noXwggEp46T48eqMUdi541D9Y+BVx9HYAo6OCQz0+6eXwxJL+tpRcAAXIMMWv362CYHoOgIU45R7xVSMLY1k/HLrcEAblwxEaSpduCH5cWUXZE/56IyxpvP44BxZkVhNdqJLmg4hxBQWhoMNYiTZxbLay3W2TwBCM111cAtUx4M/jQ== fabio@pc-fabio
|
||||
|
|
@ -0,0 +1,7 @@
|
|||
---
|
||||
- import_playbook: ping_all.yaml
|
||||
- name: Basic check nodes
|
||||
hosts: all
|
||||
roles:
|
||||
- common
|
||||
|
||||
|
|
@ -0,0 +1,10 @@
|
|||
---
|
||||
|
||||
- hosts: all
|
||||
gather_facts: False
|
||||
connection: local
|
||||
|
||||
tasks:
|
||||
- name: ping
|
||||
shell: ping -c 1 -W 2 {{ ansible_host }}
|
||||
|
||||
|
|
@ -0,0 +1,2 @@
|
|||
---
|
||||
config-flavor: none
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
---
|
||||
- name: Check access to Internet
|
||||
wait_for: host=1.1.1.1 timeout=1
|
||||
|
|
@ -0,0 +1,2 @@
|
|||
---
|
||||
- import_tasks: connectivity.yml
|
||||
|
|
@ -0,0 +1,4 @@
|
|||
---
|
||||
# configure as master if flag
|
||||
# identify swarm by node variable
|
||||
become_user: docker
|
||||
|
|
@ -0,0 +1,40 @@
|
|||
Docker Role
|
||||
=========
|
||||
|
||||
Tasks :
|
||||
- Installs dependencies and docker env [tasks/install.yml](tasks/install.yml)
|
||||
- Creates user docker (group docker) for docker operations [tasks/docker_user.yml](tasks/docker_user.yml)
|
||||
|
||||
Requirements
|
||||
------------
|
||||
|
||||
Uses **become**
|
||||
|
||||
Role Variables
|
||||
--------------
|
||||
|
||||
A description of the settable variables for this role should go here, including any variables that are in defaults/main.yml, vars/main.yml, and any variables that can/should be set via parameters to the role. Any variables that are read from other roles and/or the global scope (ie. hostvars, group vars, etc.) should be mentioned here as well.
|
||||
|
||||
Dependencies
|
||||
------------
|
||||
|
||||
A list of other roles hosted on Galaxy should go here, plus any details in regards to parameters that may need to be set for other roles, or variables that are used from other roles.
|
||||
|
||||
Example Playbook
|
||||
----------------
|
||||
|
||||
Including an example of how to use your role (for instance, with variables passed in as parameters) is always nice for users too:
|
||||
|
||||
- hosts: servers
|
||||
roles:
|
||||
- { role: username.rolename, x: 42 }
|
||||
|
||||
License
|
||||
-------
|
||||
|
||||
BSD
|
||||
|
||||
Author Information
|
||||
------------------
|
||||
|
||||
An optional section for the role authors to include contact information, or a website (HTML is not allowed).
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
#SPDX-License-Identifier: MIT-0
|
||||
---
|
||||
# defaults file for docker
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
#SPDX-License-Identifier: MIT-0
|
||||
---
|
||||
# handlers file for docker
|
||||
|
|
@ -0,0 +1,35 @@
|
|||
#SPDX-License-Identifier: MIT-0
|
||||
galaxy_info:
|
||||
author: your name
|
||||
description: your role description
|
||||
company: your company (optional)
|
||||
|
||||
# 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: license (GPL-2.0-or-later, MIT, etc)
|
||||
|
||||
min_ansible_version: 2.1
|
||||
|
||||
# If this a Container Enabled role, provide the minimum Ansible Container version.
|
||||
# min_ansible_container_version:
|
||||
|
||||
galaxy_tags: []
|
||||
# List tags for your role here, one per line. A tag is a keyword that describes
|
||||
# and categorizes the role. Users find roles by searching for tags. Be sure to
|
||||
# remove the '[]' above, if you add tags to this list.
|
||||
#
|
||||
# NOTE: A tag is limited to a single word comprised of alphanumeric characters.
|
||||
# Maximum 20 tags per role.
|
||||
|
||||
dependencies: []
|
||||
# List your role dependencies here, one per line. Be sure to remove the '[]' above,
|
||||
# if you add dependencies to this list.
|
||||
|
|
@ -0,0 +1,24 @@
|
|||
---
|
||||
- name: Add the docker group
|
||||
group:
|
||||
name: docker
|
||||
gid: 1101
|
||||
state: present
|
||||
|
||||
|
||||
- name: Add the docker user
|
||||
user:
|
||||
name: docker
|
||||
uid: 1101
|
||||
group: docker
|
||||
# Directly generate hash
|
||||
# https://www.lisenet.com/2019/ansible-generate-crypted-passwords-for-the-user-module/
|
||||
password: "{{ docker_crypted_password | password_hash('sha512') }}"
|
||||
shell: /bin/bash
|
||||
system: yes
|
||||
home: /srv/docker
|
||||
state: present
|
||||
|
||||
- name: Reset ssh connection to allow user changes to affect ansible user
|
||||
ansible.builtin.meta:
|
||||
reset_connection
|
||||
|
|
@ -0,0 +1,41 @@
|
|||
---
|
||||
- name: Install aptitude
|
||||
apt:
|
||||
name: aptitude
|
||||
state: latest
|
||||
update_cache: true
|
||||
|
||||
- name: Install required system packages
|
||||
apt:
|
||||
pkg:
|
||||
- apt-transport-https
|
||||
- ca-certificates
|
||||
- curl
|
||||
- software-properties-common
|
||||
- python3-pip
|
||||
- virtualenv
|
||||
- python3-setuptools
|
||||
state: latest
|
||||
update_cache: true
|
||||
|
||||
- name: Add Docker GPG apt Key
|
||||
apt_key:
|
||||
url: https://download.docker.com/linux/ubuntu/gpg
|
||||
state: present
|
||||
|
||||
- name: Add Docker Repository
|
||||
apt_repository:
|
||||
repo: deb https://download.docker.com/linux/ubuntu focal stable
|
||||
state: present
|
||||
|
||||
- name: Update apt and install docker-ce
|
||||
apt:
|
||||
name: docker-ce
|
||||
state: latest
|
||||
update_cache: true
|
||||
|
||||
- name: Install Docker Module for Python
|
||||
pip:
|
||||
break_system_packages: true
|
||||
name: docker
|
||||
|
||||
|
|
@ -0,0 +1,17 @@
|
|||
#SPDX-License-Identifier: MIT-0
|
||||
---
|
||||
# tasks file for docker
|
||||
- include_tasks: install.yml
|
||||
args:
|
||||
apply:
|
||||
become: yes
|
||||
- include_tasks: docker_user.yml
|
||||
args:
|
||||
apply:
|
||||
become: yes
|
||||
|
||||
# - include_tasks: swarm.yml
|
||||
# args:
|
||||
# apply:
|
||||
# become: yes
|
||||
# become_user: docker
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
#SPDX-License-Identifier: MIT-0
|
||||
localhost
|
||||
|
||||
|
|
@ -0,0 +1,5 @@
|
|||
#SPDX-License-Identifier: MIT-0
|
||||
---
|
||||
- hosts: localhost
|
||||
roles:
|
||||
- docker
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
#SPDX-License-Identifier: MIT-0
|
||||
---
|
||||
# vars file for docker
|
||||
|
|
@ -0,0 +1,6 @@
|
|||
---
|
||||
# NB inherit docker
|
||||
- name: Create volumes
|
||||
## TODO
|
||||
|
||||
- name: launch Nextcloud aio docker image
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
.idea/
|
||||
*.iml
|
||||
.vagrant/
|
||||
|
|
@ -0,0 +1,38 @@
|
|||
---
|
||||
sudo: required
|
||||
language: python
|
||||
python: "2.7"
|
||||
|
||||
env:
|
||||
- SITE=test.yml
|
||||
|
||||
before_install:
|
||||
- sudo apt-get update -qq
|
||||
- sudo apt-get install -y curl
|
||||
|
||||
install:
|
||||
# Install Ansible.
|
||||
- pip install ansible
|
||||
|
||||
# Add ansible.cfg to pick up roles path.
|
||||
#- "{ echo '[defaults]'; echo 'roles_path = ../'; } >> ansible.cfg"
|
||||
|
||||
script:
|
||||
# Check the role/playbook's syntax.
|
||||
- "ansible-playbook -i tests/inventory tests/$SITE --syntax-check"
|
||||
|
||||
# Run the role/playbook with ansible-playbook.
|
||||
- "ansible-playbook -i tests/inventory tests/$SITE --connection=local --sudo"
|
||||
|
||||
# Run the role/playbook again, checking to make sure it's idempotent.
|
||||
- >
|
||||
ansible-playbook -i tests/inventory tests/$SITE --connection=local --sudo
|
||||
| grep -q 'changed=2.*failed=0'
|
||||
&& (echo 'Idempotence test: pass' && exit 0)
|
||||
|| (echo 'Idempotence test: fail' && exit 1)
|
||||
|
||||
# TODO - get the test working.
|
||||
# Request a file via FTP, to make sure pure-ftpd is running and responds.
|
||||
|
||||
notifications:
|
||||
webhooks: https://galaxy.ansible.com/api/v1/notifications/
|
||||
|
|
@ -0,0 +1,106 @@
|
|||
# Ansible Role: Pure-FTPd
|
||||
|
||||
[](https://travis-ci.org/robgmills/ansible-pure-ftpd)
|
||||
|
||||
Installs Pure-FTPd on Debian/Ubuntu Linux.
|
||||
|
||||
This role installs and configures the latest version of Pure-FTPd from the Pure-FTPd via apt (on Debian-based systems). You will likely need to do extra setup work after this role has installed Pure-FTPd.
|
||||
|
||||
## Requirements
|
||||
|
||||
None.
|
||||
|
||||
## Role Variables
|
||||
|
||||
Available variables are listed below, along with default values (see `defaults/main.yml`):
|
||||
|
||||
pure_ftpd_root: "/var/ftp"
|
||||
|
||||
A directory path at which to scope the FTP server access.
|
||||
|
||||
pure_ftpd_user: "ftp"
|
||||
|
||||
The system-level user that the FTP daemon performs operations under. This user is setup without login permissions (can't ssh into system) but owns all of the files uploaded via the FTP server.
|
||||
|
||||
pure_ftpd_group: "ftp-sys-group"
|
||||
|
||||
The system-level group that the FTP daemon performs operations under. This is the group assigned to all files uploaded via the FTP server.
|
||||
|
||||
pure_ftpd_vusers:
|
||||
- name: "ftp"
|
||||
password: "FTPisSoC00l?"
|
||||
dir: "/var/ftp" # optional
|
||||
|
||||
A list of user definitions virtual FTP users. If left empty, defaults to a single user with the username `ftp` and password `ftp`. `name` and `password` are required fields. `dir` is optional and defaults to the value of `ftp_root`.
|
||||
|
||||
Since the array of `virtual_users` needs to contain secret credentials, it is recommended to create an [Ansible Vault][vault]-encrypted variable file to include that contains your users and overrides the role default vars.
|
||||
|
||||
pure_ftpd_tls: true
|
||||
|
||||
Turns on/off support for FTP TLS encryption. It is strongly recommended that this remain `true`.
|
||||
|
||||
pure_ftpd_allow_insecure: false
|
||||
|
||||
When TLS encryption is enabled, the default is to not allow non-encrypted, insecure connections. Setting this value to `true` will allow both secure and insecure connections. Requires that `enable_tls` be `true`.
|
||||
|
||||
pure_ftpd_pem: ""
|
||||
|
||||
The contents of the PEM certificate to use for FTP TLS encryption. It is recommended to create an [Ansible Vault][vault]-encrypted variable file to include that contains your PEM certificate.
|
||||
|
||||
If no `pure_ftpd_pem` is provided, a PEM certificate is generated using `openssl`.
|
||||
|
||||
pure_ftpd_openssl_config: {}
|
||||
|
||||
The `openssl_config` vars object controls the generation of an openssl PEM certificate + key combination.
|
||||
|
||||
The sub-properties of the `openssl_config` object are as follows:
|
||||
|
||||
days: "365"
|
||||
|
||||
The number of days for which the certificate is valid.
|
||||
|
||||
size: "2048"
|
||||
|
||||
The size of the certificate key. The larger, the more secure.
|
||||
|
||||
country: ""
|
||||
state: ""
|
||||
locality: ""
|
||||
org: ""
|
||||
unit: ""
|
||||
common: ""
|
||||
email: ""
|
||||
|
||||
The values of the certificate subject information.
|
||||
|
||||
## Dependencies
|
||||
|
||||
None.
|
||||
|
||||
## Example Playbook
|
||||
|
||||
- hosts: server
|
||||
roles:
|
||||
- role: robgmills.pure-ftpd
|
||||
|
||||
## Try It!
|
||||
|
||||
From the root of the project:
|
||||
|
||||
vagrant up
|
||||
|
||||
...then...
|
||||
|
||||
ansible-playbook -i inventory -b -u vagrant -k playbook.yml
|
||||
|
||||
...then use your favorite FTPS client to connect to `ftps://ftp:FTPisSoC00l?@192.168.50.2`
|
||||
|
||||
## License
|
||||
|
||||
MIT / BSD
|
||||
|
||||
## Author Information
|
||||
|
||||
This role was created in 2016 by [Rob Mills](https://robgmills.com/).
|
||||
|
||||
[vault]: http://docs.ansible.com/ansible/playbooks_vault.html
|
||||
|
|
@ -0,0 +1,4 @@
|
|||
Vagrant.configure(2) do |config|
|
||||
config.vm.box = "debian/jessie64"
|
||||
config.vm.network "private_network", ip: "192.168.50.2"
|
||||
end
|
||||
|
|
@ -0,0 +1,2 @@
|
|||
[defaults]
|
||||
roles_path = ../
|
||||
|
|
@ -0,0 +1,23 @@
|
|||
---
|
||||
# Used only for Debian/Ubuntu installation, as the -t option for apt.
|
||||
pureftpd_default_release: ""
|
||||
|
||||
pure_ftpd_user: "ftp"
|
||||
pure_ftpd_group: "ftp"
|
||||
pure_ftpd_root: "/var/ftp"
|
||||
pure_ftpd_vusers:
|
||||
- name: ftp
|
||||
dir: "{{ pure_ftpd_root }}"
|
||||
password: "FTPisSoC00l?"
|
||||
pure_ftpd_tls: true
|
||||
pure_ftpd_allow_insecure: false
|
||||
pure_ftpd_openssl_config:
|
||||
days: "365"
|
||||
size: "2048"
|
||||
country: ""
|
||||
state: ""
|
||||
locality: ""
|
||||
org: ""
|
||||
unit: ""
|
||||
common: ""
|
||||
email: ""
|
||||
|
|
@ -0,0 +1 @@
|
|||
192.168.50.2
|
||||
|
|
@ -0,0 +1,2 @@
|
|||
install_date: Thu Sep 25 13:49:03 2025
|
||||
version: 1.0.1
|
||||
|
|
@ -0,0 +1,18 @@
|
|||
---
|
||||
galaxy_info:
|
||||
author: Rob Mills
|
||||
description: Installs and configures a Pure-FTPd server
|
||||
company: RGM
|
||||
license: MIT
|
||||
min_ansible_version: 2.0
|
||||
platforms:
|
||||
- name: Debian
|
||||
versions:
|
||||
- all
|
||||
galaxy_tags:
|
||||
- ftp
|
||||
- server
|
||||
- ftps
|
||||
- tls
|
||||
- openssl
|
||||
dependencies: []
|
||||
|
|
@ -0,0 +1,5 @@
|
|||
---
|
||||
- hosts: 192.168.50.2
|
||||
become: true
|
||||
roles:
|
||||
- ansible-pure-ftpd
|
||||
|
|
@ -0,0 +1,38 @@
|
|||
---
|
||||
# Variable setup.
|
||||
- name: Include OS-specific variables.
|
||||
include_vars: "{{ ansible_os_family }}.yml"
|
||||
|
||||
# Setup/install tasks.
|
||||
- include_tasks: setup-Debian.yml
|
||||
when: ansible_os_family == 'Debian'
|
||||
|
||||
# Pure-FTPd setup
|
||||
- name: Create the FTP system group '{{ pure_ftpd_group }}'
|
||||
group: name={{ pure_ftpd_group }} state=present
|
||||
|
||||
- name: Create the FTP system user '{{ pure_ftpd_user }}'
|
||||
user: name={{ pure_ftpd_user }} group={{ pure_ftpd_group }} home=/dev/null shell=/sbin/nologin state=present
|
||||
|
||||
- name: Create FTP server root directory '{{ pure_ftpd_root }}'
|
||||
file: dest={{ pure_ftpd_root }} mode=0755 state=directory owner={{ pure_ftpd_user }} group={{ pure_ftpd_group }}
|
||||
|
||||
# Create and/or install SSL certificate
|
||||
- include_tasks: tls.yml
|
||||
when: pure_ftpd_tls
|
||||
|
||||
# Create the virtual FTP users and set their passwords
|
||||
- include_tasks: virtual-user.yml
|
||||
with_items: "{{ pure_ftpd_vusers }}"
|
||||
|
||||
- name: Link virtual FTP user database to the correct location
|
||||
file: src={{ __ftp_user_db }} dest={{ __ftp_user_db_sym }} state=link
|
||||
register: r_linkdb
|
||||
|
||||
- name: Restart pure-ftpd
|
||||
service: name=pure-ftpd state=restarted
|
||||
when: r_linkdb.changed
|
||||
|
||||
# - Ensure that FTP service is running
|
||||
- name: Ensure pure-ftpd is started and enabled to start at boot.
|
||||
service: name=pure-ftpd state=started enabled=yes
|
||||
|
|
@ -0,0 +1,15 @@
|
|||
---
|
||||
- name: Update apt cache.
|
||||
apt: update_cache=yes cache_valid_time=86400
|
||||
|
||||
- name: Ensure requisite apt packages are installed.
|
||||
apt: name={{ item }} state=present default_release={{ pureftpd_default_release }}
|
||||
with_items:
|
||||
- pure-ftpd
|
||||
- python-pip
|
||||
- openssl
|
||||
|
||||
- name: Install pexpect
|
||||
pip:
|
||||
name: "pexpect"
|
||||
state: present
|
||||
|
|
@ -0,0 +1,41 @@
|
|||
---
|
||||
# assumes that `enable_tls: true`
|
||||
- name: Define TLS support level.
|
||||
no_log: true
|
||||
set_fact:
|
||||
tls_level: 2
|
||||
when: not pure_ftpd_allow_insecure
|
||||
|
||||
- name: Define TLS support level.
|
||||
no_log: true
|
||||
set_fact:
|
||||
tls_level: 1
|
||||
when: pure_ftpd_allow_insecure
|
||||
|
||||
- name: Set TLS config level ({{ tls_level | default(2) }})
|
||||
copy: content={{ tls_level | default(2) }} dest={{ __ftp_conf_root }}/TLS owner=root group=root
|
||||
|
||||
- name: Install configured TLS PEM for pure-ftpd
|
||||
no_log: true
|
||||
copy: content="{{ pure_ftpd_pem }}" dest=/etc/ssl/private/pure-ftpd.pem owner=root group=root
|
||||
when: pure_ftpd_pem is defined
|
||||
|
||||
- name: Check if pure-pw centificate file exists
|
||||
stat: path=/etc/ssl/private/pure-ftpd.pem
|
||||
register: r_ftppem
|
||||
|
||||
- name: Generate TLS PEM for pure-ftpd
|
||||
expect:
|
||||
command: openssl req -x509 -nodes -days {{ pure_ftpd_openssl_config.days }} -newkey rsa:{{ pure_ftpd_openssl_config.size }} -keyout /etc/ssl/private/pure-ftpd.pem -out /etc/ssl/private/pure-ftpd.pem
|
||||
responses:
|
||||
(?i)country name: "{{ pure_ftpd_openssl_config.country }}"
|
||||
(?i)state or province name: "{{ pure_ftpd_openssl_config.state }}"
|
||||
(?i)locality name: "{{ pure_ftpd_openssl_config.locality }}"
|
||||
(?i)organization name: "{{ pure_ftpd_openssl_config.org }}"
|
||||
(?i)organizational unit name: "{{ pure_ftpd_openssl_config.unit }}"
|
||||
(?i)common name: "{{ pure_ftpd_openssl_config.common }}"
|
||||
(?i)email address: "{{ pure_ftpd_openssl_config.email }}"
|
||||
when: pure_ftpd_pem is not defined and not r_ftppem.stat.exists
|
||||
|
||||
- name: Restrict permissions on PEM
|
||||
file: state=file path=/etc/ssl/private/pure-ftpd.pem mode=0600 owner=root group=root
|
||||
|
|
@ -0,0 +1,34 @@
|
|||
---
|
||||
- name: Create directory {{ item.dir | default( pure_ftpd_root ) }} for virtual FTP user {{ item.name }}
|
||||
file: dest={{ item.dir | default( pure_ftpd_root ) }} mode=0755 state=directory owner={{ pure_ftpd_user }} group={{ pure_ftpd_group}}
|
||||
|
||||
- name: Check if pure-pw passwords file exists
|
||||
stat: path={{ __ftp_passwd }}
|
||||
register: r_passwd
|
||||
|
||||
- name: Check if virtual FTP user {{ item.name }} exists
|
||||
command: pure-pw show {{ item.name }}
|
||||
register: r_userexists
|
||||
when: r_passwd.stat.exists
|
||||
changed_when: "r_userexists.rc != 0"
|
||||
ignore_errors: true
|
||||
|
||||
- name: Create virtual FTP user {{ item.name }}
|
||||
expect:
|
||||
command: pure-pw useradd {{ item.name }} -u {{ pure_ftpd_user }} -g {{ pure_ftpd_group }} -d {{ item.dir | default( pure_ftpd_root ) }} -m
|
||||
responses:
|
||||
(?i)password: "{{ item.password }}"
|
||||
(?i)enter it again: "{{ item.password }}"
|
||||
when: (r_userexists|failed) or (not r_passwd.stat.exists)
|
||||
|
||||
- name: Update virtual FTP user {{ item.name }}
|
||||
command: pure-pw usermod {{ item.name }} -u {{ pure_ftpd_user }} -g {{ pure_ftpd_group }} -d {{ item.dir | default( pure_ftpd_root ) }} -m
|
||||
when: r_userexists|success
|
||||
|
||||
- name: Update virtual FTP user {{ item.name }} password
|
||||
expect:
|
||||
command: pure-pw passwd {{ item.name }}
|
||||
responses:
|
||||
(?i)password: "{{ item.password }}"
|
||||
(?i)enter it again: "{{ item.password }}"
|
||||
when: r_userexists|success
|
||||
|
|
@ -0,0 +1 @@
|
|||
localhost
|
||||
|
|
@ -0,0 +1,5 @@
|
|||
---
|
||||
- hosts: localhost
|
||||
remote_user: root
|
||||
roles:
|
||||
- role: ansible-pure-ftpd
|
||||
|
|
@ -0,0 +1,6 @@
|
|||
---
|
||||
__ftp_root: "/etc/pure-ftpd"
|
||||
__ftp_passwd: "{{ __ftp_root }}/pureftpd.passwd"
|
||||
__ftp_conf_root: "{{ __ftp_root }}/conf"
|
||||
__ftp_user_db: "{{ __ftp_conf_root }}/PureDB"
|
||||
__ftp_user_db_sym: "{{ __ftp_root }}/auth/60puredb"
|
||||
|
|
@ -0,0 +1,6 @@
|
|||
---
|
||||
#- import_playbook: dbservers.yml
|
||||
- import_playbook: nodes.yml
|
||||
#- import_playbook: controller.yml
|
||||
- import_playbook: swarms.yml
|
||||
#- import_playbook: nextcloud.yml
|
||||
|
|
@ -0,0 +1,144 @@
|
|||
---
|
||||
- name: "Configure swarm"
|
||||
hosts: swarm1
|
||||
roles:
|
||||
- common
|
||||
- docker
|
||||
tasks:
|
||||
- name: "Prepare manager group"
|
||||
add_host:
|
||||
hostname: "{{ item }}"
|
||||
groups: manager_group
|
||||
with_items: "{{play_hosts}}"
|
||||
when: hostvars[item]['swarm_master'] is defined and hostvars[item]['swarm_master']
|
||||
|
||||
- name: "Prepare worker group"
|
||||
add_host:
|
||||
hostname: "{{ item }}"
|
||||
groups: worker_group
|
||||
with_items: "{{play_hosts}}"
|
||||
when: not hostvars[item]['swarm_master']
|
||||
|
||||
|
||||
|
||||
# From https://medium.com/@cantrobot/deploying-docker-swarm-with-ansible-a991c1028427
|
||||
|
||||
- name: "Gather status of manager nodes"
|
||||
hosts: manager_group
|
||||
become_user: docker
|
||||
tasks:
|
||||
- name: "Load docker info as facts"
|
||||
community.docker.docker_container_info:
|
||||
|
||||
- name: "Create swarm_manager_operational group"
|
||||
add_host:
|
||||
hostname: "{{ item }}"
|
||||
groups: swarm_manager_operational
|
||||
with_items: "{{ play_hosts }}"
|
||||
when: "'{{ hostvars[item]['docker_info']['Swarm']['LocalNodeState'] }}' == 'active'"
|
||||
run_once: true
|
||||
|
||||
- name: "Create swarm_manager_bootstrap group"
|
||||
add_host:
|
||||
hostname: "{{ item }}"
|
||||
groups: swarm_manager_bootstrap
|
||||
with_items: "{{ play_hosts }}"
|
||||
when: "'{{ hostvars[item]['docker_info']['Swarm']['LocalNodeState'] }}' != 'active'"
|
||||
run_once: true
|
||||
|
||||
|
||||
|
||||
- name: "Do the same for workers"
|
||||
hosts: worker_group
|
||||
become_user: docker
|
||||
tasks:
|
||||
- name: "Load docker info as facts"
|
||||
community.docker.docker_container_info:
|
||||
|
||||
- name: "Create swarm_worker_operational group"
|
||||
add_host:
|
||||
hostname: "{{ item }}"
|
||||
groups: swarm_worker_operational
|
||||
with_items: "{{ play_hosts }}"
|
||||
when: "'{{ hostvars[item]['docker_info']['Swarm']['LocalNodeState'] }}' == 'active'"
|
||||
run_once: true
|
||||
|
||||
- name: "Create swarm_worker_bootstrap group"
|
||||
add_host:
|
||||
hostname: "{{ item }}"
|
||||
groups: swarm_worker_bootstrap
|
||||
with_items: "{{ play_hosts }}"
|
||||
when: "'{{ hostvars[item]['docker_info']['Swarm']['LocalNodeState'] }}' != 'active'"
|
||||
run_once: true
|
||||
|
||||
|
||||
|
||||
- name: "Bootstrap the swarm"
|
||||
hosts: swarm_manager_bootstrap[0]
|
||||
become_user: docker
|
||||
tasks:
|
||||
- name: initialize swarm cluster
|
||||
shell: >
|
||||
docker swarm init
|
||||
--advertise-addr={{ swarm_iface | default('eth0') }}:2377
|
||||
when: "'swarm_manager_operational' not in groups"
|
||||
register: bootstrap_first_node
|
||||
|
||||
- name: add initialized host to swarm_manager_operational group
|
||||
add_host:
|
||||
hostname: "{{ play_hosts[0] }}"
|
||||
groups: swarm_manager_operational
|
||||
when: bootstrap_first_node | changed
|
||||
|
||||
|
||||
|
||||
- name: "Retrieve the tokens"
|
||||
hosts: swarm_manager_operational[0]
|
||||
become: true
|
||||
vars:
|
||||
iface: "{{ swarm_iface | default('eth0') }}"
|
||||
tasks:
|
||||
- name: retrieve swarm manager token
|
||||
shell: docker swarm join-token -q manager
|
||||
register: swarm_manager_token
|
||||
|
||||
- name: retrieve swarm worker token
|
||||
shell: docker swarm join-token -q worker
|
||||
register: swarm_worker_token
|
||||
|
||||
- name: populate list of manager ips
|
||||
add_host:
|
||||
hostname: "{{ hostvars[item]['ansible_' + iface]['ipv4']['address'] }}"
|
||||
groups: swarm_manager_ips
|
||||
with_items: "{{ play_hosts }}"
|
||||
|
||||
|
||||
- name: "Join managers"
|
||||
# filtered from possible bootstrap
|
||||
hosts: swarm_manager_bootstrap:!swarm_manager_operational
|
||||
become: true
|
||||
vars:
|
||||
token: "{{ hostvars[groups['swarm_manager_operational'][0]]['swarm_manager_token']['stdout'] }}"
|
||||
tasks:
|
||||
- name: join manager nodes to cluster
|
||||
shell: >
|
||||
docker swarm join
|
||||
--advertise-addr={{ swarm_iface | default('eth0') }}:2377
|
||||
--token={{ token }}
|
||||
{{ groups['swarm_manager_ips'][0] }}:2377
|
||||
|
||||
|
||||
|
||||
- name: "Join workers"
|
||||
hosts: swarm_worker_bootstrap
|
||||
become: true
|
||||
vars:
|
||||
token: "{{ hostvars[groups['swarm_manager_operational'][0]]['swarm_worker_token']['stdout'] }}"
|
||||
tasks:
|
||||
- name: join worker nodes to cluster
|
||||
shell: >
|
||||
docker swarm join
|
||||
--advertise-addr={{ swarm_iface | default('eth0') }}:2377
|
||||
--token={{ token }}
|
||||
{{ groups['swarm_manager_ips'][0] }}:2377
|
||||
|
||||
|
|
@ -0,0 +1,73 @@
|
|||
# Ansible Playbooks
|
||||
|
||||
## Usage
|
||||
|
||||
The inventory defines labs, nodes and their group based on function.
|
||||
|
||||
Playbooks run Roles against node groups.
|
||||
|
||||
Roles define set of Tasks.
|
||||
|
||||
|
||||
|
||||
## Playbooks
|
||||
|
||||
Launch playbooks from present folder in order to use [default config file](ansible.cfg).
|
||||
|
||||
**Site** playbook launches them all.
|
||||
**Bootstrap** is to be run first on new installations.
|
||||
|
||||
|
||||
### Site
|
||||
This playbook recalls all the following playbooks in the stated order.
|
||||
|
||||
##### Nodes
|
||||
Basic checks connectivity for **all**
|
||||
|
||||
|
||||
##### Swarms
|
||||
|
||||
##### NextCloud
|
||||
Installs Nextcloud AIO using SSE Lab / dockerized / nextcloud-aio
|
||||
|
||||
|
||||
### Bootstrap ###
|
||||
Creates sudoer user ansible, necessitates of sudoer user.
|
||||
Use `ansible-playbook -i inventories playbooks/bootstrap.yml -l [TARGET_HOST] -e 'ansible_user=[REMOTE_USER]' -K`
|
||||
|
||||
|
||||
## Inventories
|
||||
|
||||
### Main Lab
|
||||
Main lab used for experimenting and development [check](main-lab)
|
||||
|
||||
### Externals
|
||||
Management of extra infra nodes [check](non-infra)
|
||||
|
||||
### Production
|
||||
Management of production services, beware!
|
||||
|
||||
Hosts are commented by default
|
||||
|
||||
|
||||
### Prox1_lab
|
||||
Prox mox laboratory
|
||||
|
||||
|
||||
|
||||
## TODO
|
||||
* K8s cluster
|
||||
* Ensure micro on operating nodes
|
||||
* Swarm clusters
|
||||
* Enabling
|
||||
* Bind
|
||||
* CEPH storage
|
||||
* Monitoring
|
||||
* Nagios
|
||||
* Swarm 1
|
||||
|
||||
* GOD
|
||||
* terraform
|
||||
* ansible
|
||||
* puppetmaster
|
||||
* ...
|
||||
|
|
@ -0,0 +1,12 @@
|
|||
groups:
|
||||
- admingroup: [root,sys]
|
||||
- cloud-users
|
||||
- docker
|
||||
|
||||
users:
|
||||
- swarm
|
||||
- gecos: Docker Swarm user
|
||||
- primary_group: docker
|
||||
- passwd: $6$rounds=4096$hCzh4u/Ithq3ZD0p$APkrRjYwcD8y1oNJhmywYy.82OE4LTTL8u42TxL12LfUVDD.keBrlOM4F.wFvRfvEh2RYtOxncP/7XDkPm31E/
|
||||
- ssh_authorized_keys: [ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEArNhKFcJ6T08sn7kTTLf+rO9HEvgOvqfhv5HQ2sRf2tFYfjfCb0zHKnMkgW+sy5gMU10Lyx1r7juXCvqRC955uIM97m1B1Xc6sVqASVKuGPhCKfhxEaMAyBcWFdE+HYbCOPYVN+JMrcwWfbblwiZTtK1OCqaEUvDDI7cFeU68noXwggEp46T48eqMUdi541D9Y+BVx9HYAo6OCQz0+6eXwxJL+tpRcAAXIMMWv362CYHoOgIU45R7xVSMLY1k/HLrcEAblwxEaSpduCH5cWUXZE/56IyxpvP44BxZkVhNdqJLmg4hxBQWhoMNYiTZxbLay3W2TwBCM111cAtUx4M/jQ== fabio@pc-fabio]
|
||||
- sudo: ALL=(ALL) NOPASSWD:ALL
|
||||
|
|
@ -12,12 +12,15 @@ http {
|
|||
# Servers name come from compose definition
|
||||
|
||||
upstream swarm1_cluster {
|
||||
server swarm1w1.sselab.ddns.net;
|
||||
server swarm1w2.sselab.ddns.net;
|
||||
server swarm1w3.sselab.ddns.net;
|
||||
server swarm1w4.sselab.ddns.net;
|
||||
server swarm1w1.home.arpa;
|
||||
server swarm1w2.home.arpa;
|
||||
server swarm1w3.home.arpa;
|
||||
server swarm1w4.home.arpa;
|
||||
}
|
||||
|
||||
upstream rup_cluster {
|
||||
server rup1.home.arpa;
|
||||
}
|
||||
|
||||
#TODO manage certs
|
||||
# server {
|
||||
|
|
@ -81,6 +84,26 @@ http {
|
|||
}
|
||||
|
||||
|
||||
server {
|
||||
listen 80;
|
||||
server_name reterup.it *.reterup.it;
|
||||
|
||||
location /{
|
||||
|
||||
#Redirect to simple_app
|
||||
proxy_pass http://rup_cluster;
|
||||
proxy_http_version 1.1;
|
||||
proxy_set_header Upgrade $http_upgrade;
|
||||
proxy_set_header Connection 'upgrade';
|
||||
proxy_set_header Host $host;
|
||||
proxy_cache_bypass $http_upgrade;
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
#Default Catch-all serving
|
||||
server {
|
||||
listen 80 default_server;
|
||||
|
|
|
|||
|
|
@ -0,0 +1,9 @@
|
|||
https://cloud.reterup.it:443 {
|
||||
|
||||
tls /root/certs/cert.pem /root/certs/privkey.pem {
|
||||
ca_root /root/certs/origin_ca_rsa_root.pem
|
||||
}
|
||||
|
||||
header Strict-Transport-Security max-age=31536000;
|
||||
reverse_proxy localhost:11000
|
||||
}
|
||||
|
|
@ -0,0 +1,27 @@
|
|||
-----BEGIN CERTIFICATE-----
|
||||
MIIEoDCCA4igAwIBAgIUaKFdbeWJZJZL8wTBpD2DwN+JVkUwDQYJKoZIhvcNAQEL
|
||||
BQAwgYsxCzAJBgNVBAYTAlVTMRkwFwYDVQQKExBDbG91ZEZsYXJlLCBJbmMuMTQw
|
||||
MgYDVQQLEytDbG91ZEZsYXJlIE9yaWdpbiBTU0wgQ2VydGlmaWNhdGUgQXV0aG9y
|
||||
aXR5MRYwFAYDVQQHEw1TYW4gRnJhbmNpc2NvMRMwEQYDVQQIEwpDYWxpZm9ybmlh
|
||||
MB4XDTI1MDMxMDEzMjIwMFoXDTQwMDMwNjEzMjIwMFowYjEZMBcGA1UEChMQQ2xv
|
||||
dWRGbGFyZSwgSW5jLjEdMBsGA1UECxMUQ2xvdWRGbGFyZSBPcmlnaW4gQ0ExJjAk
|
||||
BgNVBAMTHUNsb3VkRmxhcmUgT3JpZ2luIENlcnRpZmljYXRlMIIBIjANBgkqhkiG
|
||||
9w0BAQEFAAOCAQ8AMIIBCgKCAQEApmRQ0ujY0sOsuOosqTURUSXeesuU2ZmPTecJ
|
||||
BmtYRD6z2+0u/eryHke1J8+P8pK7EGV3/TVKCcxJr0NHZiMmysEJKszx5WLDWJgc
|
||||
ct7uPWlb/Fsk+uep+WXJQwln1rpn2owu9fC8Umk7jvc7S9X3AbrpAjQg0e1oMwQY
|
||||
OgrbqyWzxjN0KAx3+wNLwBOJt49FZrfL8IqoNu8Fd67kKVJgcw8e+kmRxIOVqJ6M
|
||||
/GDW4PLsZInfhvcUnd1hbryaXjuIUL7+brV/h4O7AKVp2q8Y8HSsqSbBqlnCBJzw
|
||||
HhhDJM0huacEmMWOAp95oXkNXcUhOq5XdlxbdYiCz5GLg/4OUwIDAQABo4IBIjCC
|
||||
AR4wDgYDVR0PAQH/BAQDAgWgMB0GA1UdJQQWMBQGCCsGAQUFBwMCBggrBgEFBQcD
|
||||
ATAMBgNVHRMBAf8EAjAAMB0GA1UdDgQWBBQnBKifvPJehekEum2O83LhMDsirDAf
|
||||
BgNVHSMEGDAWgBQk6FNXXXw0QIep65TbuuEWePwppDBABggrBgEFBQcBAQQ0MDIw
|
||||
MAYIKwYBBQUHMAGGJGh0dHA6Ly9vY3NwLmNsb3VkZmxhcmUuY29tL29yaWdpbl9j
|
||||
YTAjBgNVHREEHDAaggwqLnJldGVydXAuaXSCCnJldGVydXAuaXQwOAYDVR0fBDEw
|
||||
LzAtoCugKYYnaHR0cDovL2NybC5jbG91ZGZsYXJlLmNvbS9vcmlnaW5fY2EuY3Js
|
||||
MA0GCSqGSIb3DQEBCwUAA4IBAQByz/7GAw13STwG/WdMCG7Pek2F3HPbsIDzvrQT
|
||||
0eplFnec/xJCXF8Kb3wI2bQdSSOrFjPzI3a+pDJzxRFIfNWWTVLwcK2ET2jRV6/S
|
||||
CZWrd9WOZ7Xd4V+irXyvKBOXiHbC35wk6vmTOUbT8BhBMiNRzWnF/bekeLRUPVPD
|
||||
7en6zC/0/YXLyLogq/Cexr6MZj+oLHKA4hnKzcGQR5quLQPGfyF+YcVecbj3D8iM
|
||||
VzmKMvIVtH38xfYjCvOHU9+ipl6MpqEjFw94ZRYzzZ5fpe/ObogvDMm4Igd/JiiJ
|
||||
N/Kv2dPxeeMbJu4WEfjw2WeEJYaIBNy+tPB7gEUB2tLv7Ce1
|
||||
-----END CERTIFICATE-----
|
||||
|
|
@ -0,0 +1,24 @@
|
|||
-----BEGIN CERTIFICATE-----
|
||||
MIIEADCCAuigAwIBAgIID+rOSdTGfGcwDQYJKoZIhvcNAQELBQAwgYsxCzAJBgNV
|
||||
BAYTAlVTMRkwFwYDVQQKExBDbG91ZEZsYXJlLCBJbmMuMTQwMgYDVQQLEytDbG91
|
||||
ZEZsYXJlIE9yaWdpbiBTU0wgQ2VydGlmaWNhdGUgQXV0aG9yaXR5MRYwFAYDVQQH
|
||||
Ew1TYW4gRnJhbmNpc2NvMRMwEQYDVQQIEwpDYWxpZm9ybmlhMB4XDTE5MDgyMzIx
|
||||
MDgwMFoXDTI5MDgxNTE3MDAwMFowgYsxCzAJBgNVBAYTAlVTMRkwFwYDVQQKExBD
|
||||
bG91ZEZsYXJlLCBJbmMuMTQwMgYDVQQLEytDbG91ZEZsYXJlIE9yaWdpbiBTU0wg
|
||||
Q2VydGlmaWNhdGUgQXV0aG9yaXR5MRYwFAYDVQQHEw1TYW4gRnJhbmNpc2NvMRMw
|
||||
EQYDVQQIEwpDYWxpZm9ybmlhMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKC
|
||||
AQEAwEiVZ/UoQpHmFsHvk5isBxRehukP8DG9JhFev3WZtG76WoTthvLJFRKFCHXm
|
||||
V6Z5/66Z4S09mgsUuFwvJzMnE6Ej6yIsYNCb9r9QORa8BdhrkNn6kdTly3mdnykb
|
||||
OomnwbUfLlExVgNdlP0XoRoeMwbQ4598foiHblO2B/LKuNfJzAMfS7oZe34b+vLB
|
||||
yrP/1bgCSLdc1AxQc1AC0EsQQhgcyTJNgnG4va1c7ogPlwKyhbDyZ4e59N5lbYPJ
|
||||
SmXI/cAe3jXj1FBLJZkwnoDKe0v13xeF+nF32smSH0qB7aJX2tBMW4TWtFPmzs5I
|
||||
lwrFSySWAdwYdgxw180yKU0dvwIDAQABo2YwZDAOBgNVHQ8BAf8EBAMCAQYwEgYD
|
||||
VR0TAQH/BAgwBgEB/wIBAjAdBgNVHQ4EFgQUJOhTV118NECHqeuU27rhFnj8KaQw
|
||||
HwYDVR0jBBgwFoAUJOhTV118NECHqeuU27rhFnj8KaQwDQYJKoZIhvcNAQELBQAD
|
||||
ggEBAHwOf9Ur1l0Ar5vFE6PNrZWrDfQIMyEfdgSKofCdTckbqXNTiXdgbHs+TWoQ
|
||||
wAB0pfJDAHJDXOTCWRyTeXOseeOi5Btj5CnEuw3P0oXqdqevM1/+uWp0CM35zgZ8
|
||||
VD4aITxity0djzE6Qnx3Syzz+ZkoBgTnNum7d9A66/V636x4vTeqbZFBr9erJzgz
|
||||
hhurjcoacvRNhnjtDRM0dPeiCJ50CP3wEYuvUzDHUaowOsnLCjQIkWbR7Ni6KEIk
|
||||
MOz2U0OBSif3FTkhCgZWQKOOLo1P42jHC3ssUZAtVNXrCk3fw9/E15k8NPkBazZ6
|
||||
0iykLhH1trywrKRMVw67F44IE8Y=
|
||||
-----END CERTIFICATE-----
|
||||
|
|
@ -3,17 +3,19 @@ version: "3.8"
|
|||
#Imported from https://github.com/nextcloud/all-in-one/discussions/575#discussion-4055615
|
||||
|
||||
services:
|
||||
caddy:
|
||||
image: caddy:alpine
|
||||
restart: unless-stopped
|
||||
container_name: caddy
|
||||
volumes:
|
||||
- ./Caddyfile:/etc/caddy/Caddyfile
|
||||
- ./certs:/certs
|
||||
- ./config:/config
|
||||
- ./data:/data
|
||||
- ./sites:/srv
|
||||
network_mode: "host"
|
||||
#caddy:
|
||||
# image: caddy:alpine
|
||||
# restart: unless-stopped
|
||||
# container_name: caddy
|
||||
# volumes:
|
||||
# - ./Caddyfile:/etc/caddy/Caddyfile
|
||||
# - ./certs:/root/certs
|
||||
# - ./config:/config
|
||||
# - ./data:/data
|
||||
# - ./sites:/srv
|
||||
# network_mode: "host"
|
||||
|
||||
|
||||
|
||||
nextcloud:
|
||||
image: nextcloud/all-in-one:latest
|
||||
|
|
@ -21,13 +23,15 @@ services:
|
|||
container_name: nextcloud-aio-mastercontainer
|
||||
ports:
|
||||
- "8080:8080"
|
||||
environment:
|
||||
- APACHE_PORT=11000
|
||||
- "80:80"
|
||||
- "8443:8443"
|
||||
#environment:
|
||||
# - APACHE_PORT=11000
|
||||
volumes:
|
||||
- nextcloud_aio_mastercontainer:/mnt/docker-aio-config
|
||||
- /var/run/docker.sock:/var/run/docker.sock:ro
|
||||
depends_on:
|
||||
- caddy
|
||||
#depends_on:
|
||||
# - caddy
|
||||
|
||||
volumes:
|
||||
nextcloud_aio_mastercontainer:
|
||||
|
|
|
|||
|
|
@ -38,7 +38,7 @@ http {
|
|||
# Optional server block for HTTP to HTTPS redirection
|
||||
server {
|
||||
listen 80; # Listen on port 80 for HTTP
|
||||
server_name *.sselab.ddns.net;
|
||||
server_name *.home.arpa;
|
||||
|
||||
|
||||
location / {
|
||||
|
|
|
|||
Loading…
Reference in New Issue