Getting started with Ansible 11 – Managing Files

    12
    16



    Ansible is an incredible configuration management and provisioning utility that enables you to automate all the things. In this series, you’ll learn everything you need to know in order to use Ansible for your day-to-day administration duties. In video #11, we look at a few methods of copying files to target nodes.

    Full series:
    Part 1 (Introduction): https://linux.video/ansible1
    Part 2 (SSH Overview & Setup): https://linux.video/ansible2
    Part 3 (Setting up the Git Repository): https://linux.video/ansible3
    Part 4 (Running Commands): https://linux.video/ansible4
    Part 5 (Running Elevated Commands): https://linux.video/ansible5
    Part 6 (Writing our First Playbook): https://linux.video/ansible6
    Part 7 (The ‘when’ Conditional): https://linux.video/ansible7
    Part 8 (Improving your Playbook): https://linux.video/ansible8
    Part 9 (Targeting Specific Nodes): https://linux.video/ansible9
    Part 10 (Tags): https://linux.video/ansible10
    Part 11 (This video)
    Part 12 (Managing Services): https://linux.video/ansible12
    Part 13 (Adding Users & Bootstrapping): https://linux.video/ansible13
    Part 14 (Roles): https://linux.video/ansible14
    Part 15 (Host Variables): https://linux.video/ansible15
    Part 16 (Templates): https://linux.video/ansible16

    Wiki article for this video:
    https://www.learnlinux.tv/getting-started-with-ansible-11-managing-files/

    🙌 Support me on Patreon and get early access to new content!
    ➡️ https://learnlinux.link/patron

    ☁️ Get $100 in credit toward deploying your very own Linux servers on Linode!
    ➡️ http://linode.com/learnlinuxtv

    🛒 Affiliate store for Linux compatible hardware/accessories (commission earned):
    ➡️ https://learnlinux.link/amazon

    💻 Check out the Tiny Pilot KVM for your Homelab (commission earned):
    ➡️ https://learnlinux.link/tinypilot

    💻 Check out Shells.com and spin up your very own Linux or Windows desktop in the cloud (commission earned):
    ➡️ https://learnlinux.link/shells

    🐦 Follow me on Twitter!
    ➡️ https://learnlinux.link/twitter

    💬 Official LearnLinux.tv Community:
    ➡️ https://community.learnlinux.tv

    📖 Check out jay’s latest book, Mastering Ubuntu Server 3rd Edition. Available now!
    ➡️ https://ubuntuserverbook.com

    👨 More about me:
    ➡️ https://www.jaylacroix.com
    ➡️ https://www.learnlinux.tv/about-me

    💽 How to create a bootable flash drive for installing Linux:
    ➡️ https://linux.video/flash-usb

    🐧 Which distro do I use?
    ➡️ https://learnlinux.link/mydistro

    🔐 How to better secure OpenSSH:
    ➡️ https://linux.video/secure-ssh

    ☁️ How to create a cloud Linux server with Linode:
    ➡️ https://learnlinux.link/create-linode

    #LearnLinuxTV #LearnAnsible #Ansible

    source

    Previous articleAnsible-playbook — YAML Scripting | video – 8 | How to use loops in Ansible – playbooks ?
    Next articleChange local user password on Windows-like systems – Ansible module win_user

    16 COMMENTS

    1. Fantastic ansible videos, excellent clear and precise presentations..
      one question, in 17:30 inn this video you had to ssh to the workstation, I assume to sort out the finger print, my question is what if you had 100,s or 1000,s of such work stations?? surely you wouldnt have to ssh to each one to sort the finger printing.. your advise would be greatly appreciated .. thanking you in advance

    2. I am starting to learn Ansible. I need to find a way to actually input data into a file, for example, let's say I want the User to be asked "What is the ip address of remote machine?" followed by, "What is the FQDN or DNS name of the remote machine?"…. Now I want both of those two answers to be placed into "/etc/hosts".

      Another example would be "my.cnf" for mysql manipulation. How can I automate entries into this file or any file actually?

      I want to be able to automate a full, bespoke, freeradius solution for myself and need to know how to manipulate these files or it won't be fully automated.

      Thanks