• Skip to primary navigation
  • Skip to content
  • Skip to footer
Automate NYC! Let's automate that...
  • Posts
  • Categories
  • Tags
  • KB Docs
    1. Home
    2. /
    3. Ansible
    4. /
    5. How to wait until a lock file is removed by other process

    Eric Chong

    Ansible Automation Architect @ Red Hat

    • NYC
    • Website
    • LinkedIn

    How to wait until a lock file is removed by other process

    June 3, 2018 less than 1 minute read

    Wait until a lock file is removed by other process

      - name: Wait until lock file is
        stat:
          path: ""
        register: lck_file
        until: lck_file.stat.exists == False
        retries: 10
        delay: 5
        when: inventory_hostname != esxi_host.name
        delegate_to: ""
    

    Tags: Ansible, stat

    Categories: Ansible

    Updated: June 3, 2018

    Share on

    Twitter Facebook LinkedIn
    Previous Next

    Leave a comment

    You may also enjoy

    Using signed SSH certificate in AAP

    February 13, 2023 3 minute read

    AAP support using signed SSH certificate as machine credential. Here are example instructions setting it up.

    Debug Ansible module with VSCode

    November 11, 2022 2 minute read

    In this case I want to understand how the awx.awx.credential works.

    Setup AAP Controller to trust a CA cert

    October 6, 2022 less than 1 minute read

    AAP Controller does not read system PKI directory. So adding CA cert to /etc/pki/ca-trust/source/anchors directory and run update-ca-trust is not enough. I...

    Use signed certificate for WinRM

    September 29, 2022 1 minute read

    WinRM setup default create a self-signed certificate for the HTTPS transport. We have to set ansible_winrm_server_cert_validation: ignore to avoid getting S...

    • Follow:
    • Feed
    © 2023 Eric Chong. Powered by Jekyll & Minimal Mistakes.