Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

ansible tar with a datestamp

---
- hosts: localhost
  become: no
  gather_facts: yes

  tasks:
   - name: Display the available timestamp format in Ansible
     shell: cp /etc/nsswitch.conf  /etc/nsswitch.conf.{{ ansible_date_time.iso8601 }}

   - name: Display the newly created file
     shell: ls -lrt /etc/nsswitch.conf.{{ ansible_date_time.iso8601 }}
     register: LISTFILE

   - debug: msg={{ LISTFILE.stdout }}
Comment

PREVIOUS NEXT
Code Example
Shell :: how to use set /p in bathc 
Shell :: remove directiory bash 
Shell :: How to get packages with very_good_cli in flutter 
Shell :: ubuntu keyboard like mac 
Shell :: prime video app for ubuntu 
Shell :: dhcp handshake 
Shell :: how to convert shell script to yaml file 
Shell :: add migrations inside specific directory 
Shell :: Scan all issue with nmap 
Shell :: sed bash change line 
Shell :: sls install plugin 
Shell :: Install GIMP Ubuntu 18.04 terminal 
Shell :: How to check if your unix computer is 32-bit or 64-bit 
Shell :: remote: Permission to lokeshr001/MotoChatPlugin.git denied to Lokesh003Coding. 
Shell :: redwood authentication 
Shell :: how to do a conditional check in shell 
Shell :: ubuntu error dpkg: error processing archive libc6_2.27-3ubuntu1_amd64.deb (--install): new libc6:amd64 package pre-installation script subprocess returned error exit status 1 Processing triggers for libc-bin (2.27-3ubuntu1.2) ... 
Shell :: wsl how to mount make usb accessible 
Shell :: install openvino for ubuntu 20 
Shell :: how to look for tree in ubuntu 
Shell :: Git - switch to specific branch (ex: "feature") 
Shell :: deleting when you terminate it 
Shell :: ubuntu r package install problem 
Shell :: fish function to change php version .env 
Shell :: go back to a folder in git 
Shell :: install mullvad Fedora 
Shell :: rails scaffold no views 
Shell :: zsh prompt losing customization when using `sudo su` 
Shell :: eb setenv 
Shell :: kubenetes repo 
ADD CONTENT
Topic
Content
Source link
Name
9+8 =